2019-04-16 06:40:14 -04:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2019 Ivan Petkov <ivanppetkov@gmail.com>
|
2019-08-04 05:48:46 -04:00
|
|
|
;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
|
2019-04-16 06:40:14 -04:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages crates-io)
|
|
|
|
#:use-module (guix build-system cargo)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix packages))
|
|
|
|
|
2019-08-04 05:46:57 -04:00
|
|
|
;;;
|
|
|
|
;;; Please: Try to add new module packages in alphabetic order.
|
|
|
|
;;;
|
2019-04-16 06:42:27 -04:00
|
|
|
|
2019-08-04 05:48:46 -04:00
|
|
|
(define-public rust-autocfg
|
|
|
|
(package
|
|
|
|
(name "rust-autocfg")
|
|
|
|
(version "0.1.5")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "autocfg" version))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0asl6fnc35yk5l2rxwhp25v128jgm45dp754h9z8x51b6n90w4r2"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(home-page "https://github.com/cuviper/autocfg")
|
|
|
|
(synopsis "Automatic cfg for Rust compiler features")
|
|
|
|
(description "Rust library for build scripts to automatically configure
|
|
|
|
code based on compiler support. Code snippets are dynamically tested to see
|
|
|
|
if the @code{rustc} will accept them, rather than hard-coding specific version
|
|
|
|
support.")
|
|
|
|
(license (list license:asl2.0
|
|
|
|
license:expat))))
|
|
|
|
|
2019-08-04 05:49:42 -04:00
|
|
|
(define-public rust-bencher
|
|
|
|
(package
|
|
|
|
(name "rust-bencher")
|
|
|
|
(version "0.1.5")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "bencher" version))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1x8p2xblgqssay8cdykp5pkfc0np0jk5bs5cx4f5av097aav9zbx"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(home-page "https://github.com/bluss/bencher/")
|
|
|
|
(synopsis "Port of the libtest benchmark runner to Rust stable")
|
|
|
|
(description "This package provides a port of the libtest (unstable Rust)
|
|
|
|
benchmark runner to Rust stable releases. Supports running benchmarks and
|
|
|
|
filtering based on the name. Benchmark execution works exactly the same way
|
|
|
|
and no more (caveat: black_box is still missing!).")
|
|
|
|
(license (list license:asl2.0
|
|
|
|
license:expat))))
|
|
|
|
|
2019-08-04 05:50:29 -04:00
|
|
|
(define-public rust-bitflags
|
|
|
|
(package
|
|
|
|
(name "rust-bitflags")
|
|
|
|
(version "1.1.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "bitflags" version))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1zc1qb1hwsnl2d8rhzicsv9kqd5b2hwbrscrcfw5as4sfr35659x"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(home-page "https://github.com/bitflags/bitflags")
|
|
|
|
(synopsis "Macro to generate structures which behave like bitflags")
|
|
|
|
(description "This package provides a macro to generate structures which
|
|
|
|
behave like a set of bitflags.")
|
|
|
|
(license (list license:asl2.0
|
|
|
|
license:expat))))
|
|
|
|
|
2019-08-04 05:53:04 -04:00
|
|
|
(define-public rust-cfg-if
|
|
|
|
(package
|
|
|
|
(name "rust-cfg-if")
|
|
|
|
(version "0.1.9")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "cfg-if" version))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0csygklgz3ybpr0670rkip49zh76m43ar3k7xgypkzbzrwycx1ml"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(home-page "https://github.com/alexcrichton/cfg-if")
|
|
|
|
(synopsis "Define an item depending on parameters")
|
|
|
|
(description "This package provides a macro to ergonomically define an item
|
|
|
|
depending on a large number of #[cfg] parameters. Structured like an
|
|
|
|
@code{if-else} chain, the first matching branch is the item that gets emitted.")
|
|
|
|
(license (list license:asl2.0
|
|
|
|
license:expat))))
|
|
|
|
|
2019-08-04 05:53:50 -04:00
|
|
|
(define-public rust-discard
|
|
|
|
(package
|
|
|
|
(name "rust-discard")
|
|
|
|
(version "1.0.4")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "discard" version))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1h67ni5bxvg95s91wgicily4ix7lcw7cq0a5gy9njrybaibhyb91"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(home-page "https://github.com/Pauan/rust-discard")
|
|
|
|
(synopsis "Allow for intentionally leaking memory")
|
|
|
|
(description "There are situations where you need to intentionally leak some
|
|
|
|
memory but not other memory. This package provides a discard trait which allows
|
|
|
|
for intentionally leaking memory")
|
|
|
|
(license license:expat)))
|
|
|
|
|
2019-08-04 05:54:34 -04:00
|
|
|
(define-public rust-doc-comment
|
|
|
|
(package
|
|
|
|
(name "rust-doc-comment")
|
|
|
|
(version "0.3.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "doc-comment" version))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"15rsqxgarfpb1yim9sbp9yfgj7p2dq6v51c6bq1a62paii9ylgcj"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(home-page "https://github.com/GuillaumeGomez/doc-comment")
|
|
|
|
(synopsis "Macro to generate doc comments")
|
|
|
|
(description "This package provides a way to generate doc comments
|
|
|
|
from macros.")
|
|
|
|
(license license:expat)))
|
|
|
|
|
2019-08-04 05:55:17 -04:00
|
|
|
(define-public rust-dtoa
|
|
|
|
(package
|
|
|
|
(name "rust-dtoa")
|
|
|
|
(version "0.4.4")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "dtoa" version))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0phbm7i0dpn44gzi07683zxaicjap5064w62pidci4fhhciv8mza"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(home-page "https://github.com/dtolnay/dtoa")
|
|
|
|
(synopsis "Fast functions for printing floating-point primitives")
|
|
|
|
(description "This crate provides fast functions for printing
|
|
|
|
floating-point primitives to an @code{io::Write}.")
|
|
|
|
(license (list license:asl2.0
|
|
|
|
license:expat))))
|
|
|
|
|
2019-08-04 06:46:48 -04:00
|
|
|
(define-public rust-fallible-iterator
|
|
|
|
(package
|
|
|
|
(name "rust-fallible-iterator")
|
|
|
|
(version "0.2.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "fallible-iterator" version))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1xq759lsr8gqss7hva42azn3whgrbrs2sd9xpn92c5ickxm1fhs4"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(home-page "https://github.com/sfackler/rust-fallible-iterator")
|
|
|
|
(synopsis "Fallible iterator traits")
|
|
|
|
(description "If the @code{std} or @code{alloc} features are enabled, this
|
|
|
|
crate provides implementations for @code{Box}, @code{Vec}, @code{BTreeMap}, and
|
|
|
|
@code{BTreeSet}. If the @code{std} feature is enabled, this crate additionally
|
|
|
|
provides implementations for @code{HashMap} and @code{HashSet}.")
|
|
|
|
(license (list license:asl2.0
|
|
|
|
license:expat))))
|
|
|
|
|
2019-08-04 06:47:36 -04:00
|
|
|
(define-public rust-fnv
|
|
|
|
(package
|
|
|
|
(name "rust-fnv")
|
|
|
|
(version "1.0.6")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "fnv" version))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1ww56bi1r5b8id3ns9j3qxbi7w5h005rzhiryy0zi9h97raqbb9g"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(home-page "https://github.com/servo/rust-fnv")
|
|
|
|
(synopsis "implementation of the Fowler-Noll-Vo hash function")
|
|
|
|
(description "The @code{fnv} hash function is a custom @code{Hasher}
|
|
|
|
implementation that is more efficient for smaller hash keys.")
|
|
|
|
(license (list license:asl2.0
|
|
|
|
license:expat))))
|
|
|
|
|
2019-04-16 06:42:27 -04:00
|
|
|
(define-public rust-proc-macro2
|
|
|
|
(package
|
|
|
|
(name "rust-proc-macro2")
|
2019-07-15 15:41:54 -04:00
|
|
|
(version "0.4.30")
|
2019-04-16 06:42:27 -04:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "proc-macro2" version))
|
|
|
|
(file-name
|
|
|
|
(string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2019-07-15 15:41:54 -04:00
|
|
|
"0nd71fl24sys066jrha6j7i34nfkjv44yzw8yww9742wmc8j0gfg"))))
|
2019-04-16 06:42:27 -04:00
|
|
|
(build-system cargo-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:cargo-inputs (("rust-unicode-xid" ,rust-unicode-xid))
|
|
|
|
#:cargo-development-inputs (("rust-quote" ,rust-quote))))
|
|
|
|
(home-page "https://github.com/alexcrichton/proc-macro2")
|
|
|
|
(synopsis "Stable implementation of the upcoming new `proc_macro` API")
|
|
|
|
(description "This package provides a stable implementation of the upcoming new
|
|
|
|
`proc_macro` API. Comes with an option, off by default, to also reimplement itself
|
|
|
|
in terms of the upstream unstable API.")
|
|
|
|
;; Dual licensed.
|
|
|
|
(license (list license:asl2.0 license:expat))))
|
|
|
|
|
|
|
|
(define-public rust-quote
|
|
|
|
(package
|
|
|
|
(name "rust-quote")
|
|
|
|
(version "0.6.12")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "quote" version))
|
|
|
|
(file-name
|
|
|
|
(string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1nw0klza45hf127kfyrpxsxd5jw2l6h21qxalil3hkr7bnf7kx7s"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2))))
|
|
|
|
(home-page "https://github.com/dtolnay/quote")
|
|
|
|
(synopsis "Quasi-quoting macro quote!(...)")
|
|
|
|
(description "Quasi-quoting macro quote!(...)")
|
|
|
|
;; Dual licensed.
|
|
|
|
(license (list license:asl2.0 license:expat))))
|
2019-08-04 05:46:57 -04:00
|
|
|
|
|
|
|
(define-public rust-unicode-xid
|
|
|
|
(package
|
|
|
|
(name "rust-unicode-xid")
|
|
|
|
(version "0.1.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "unicode-xid" version))
|
|
|
|
(file-name
|
|
|
|
(string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1z57lqh4s18rr4x0j4fw4fmp9hf9346h0kmdgqsqx0fhjr3k0wpw"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(home-page
|
|
|
|
"https://github.com/unicode-rs/unicode-xid")
|
|
|
|
(synopsis "Determine Unicode XID related properties")
|
|
|
|
(description "Determine whether characters have the XID_Start
|
|
|
|
or XID_Continue properties according to Unicode Standard Annex #31.")
|
|
|
|
;; Dual licensed.
|
|
|
|
(license (list license:asl2.0 license:expat))))
|