1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2019 Ivan Petkov <ivanppetkov@gmail.com>
3 ;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
5 ;;; This file is part of GNU Guix.
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20 (define-module (gnu packages crates-io)
21 #:use-module (guix build-system cargo)
22 #:use-module (guix download)
23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (guix packages))
27 ;;; Please: Try to add new module packages in alphabetic order.
30 (define-public rust-autocfg
37 (uri (crate-uri "autocfg" version))
38 (file-name (string-append name "-" version ".tar.gz"))
41 "0asl6fnc35yk5l2rxwhp25v128jgm45dp754h9z8x51b6n90w4r2"))))
42 (build-system cargo-build-system)
43 (home-page "https://github.com/cuviper/autocfg")
44 (synopsis "Automatic cfg for Rust compiler features")
45 (description "Rust library for build scripts to automatically configure
46 code based on compiler support. Code snippets are dynamically tested to see
47 if the @code{rustc} will accept them, rather than hard-coding specific version
49 (license (list license:asl2.0
52 (define-public rust-bencher
59 (uri (crate-uri "bencher" version))
60 (file-name (string-append name "-" version ".tar.gz"))
63 "1x8p2xblgqssay8cdykp5pkfc0np0jk5bs5cx4f5av097aav9zbx"))))
64 (build-system cargo-build-system)
65 (home-page "https://github.com/bluss/bencher/")
66 (synopsis "Port of the libtest benchmark runner to Rust stable")
67 (description "This package provides a port of the libtest (unstable Rust)
68 benchmark runner to Rust stable releases. Supports running benchmarks and
69 filtering based on the name. Benchmark execution works exactly the same way
70 and no more (caveat: black_box is still missing!).")
71 (license (list license:asl2.0
74 (define-public rust-bitflags
76 (name "rust-bitflags")
81 (uri (crate-uri "bitflags" version))
82 (file-name (string-append name "-" version ".tar.gz"))
85 "1zc1qb1hwsnl2d8rhzicsv9kqd5b2hwbrscrcfw5as4sfr35659x"))))
86 (build-system cargo-build-system)
87 (home-page "https://github.com/bitflags/bitflags")
88 (synopsis "Macro to generate structures which behave like bitflags")
89 (description "This package provides a macro to generate structures which
90 behave like a set of bitflags.")
91 (license (list license:asl2.0
94 (define-public rust-cfg-if
101 (uri (crate-uri "cfg-if" version))
102 (file-name (string-append name "-" version ".tar.gz"))
105 "0csygklgz3ybpr0670rkip49zh76m43ar3k7xgypkzbzrwycx1ml"))))
106 (build-system cargo-build-system)
107 (home-page "https://github.com/alexcrichton/cfg-if")
108 (synopsis "Define an item depending on parameters")
109 (description "This package provides a macro to ergonomically define an item
110 depending on a large number of #[cfg] parameters. Structured like an
111 @code{if-else} chain, the first matching branch is the item that gets emitted.")
112 (license (list license:asl2.0
115 (define-public rust-discard
117 (name "rust-discard")
122 (uri (crate-uri "discard" version))
123 (file-name (string-append name "-" version ".tar.gz"))
126 "1h67ni5bxvg95s91wgicily4ix7lcw7cq0a5gy9njrybaibhyb91"))))
127 (build-system cargo-build-system)
128 (home-page "https://github.com/Pauan/rust-discard")
129 (synopsis "Allow for intentionally leaking memory")
130 (description "There are situations where you need to intentionally leak some
131 memory but not other memory. This package provides a discard trait which allows
132 for intentionally leaking memory")
133 (license license:expat)))
135 (define-public rust-doc-comment
137 (name "rust-doc-comment")
142 (uri (crate-uri "doc-comment" version))
143 (file-name (string-append name "-" version ".tar.gz"))
146 "15rsqxgarfpb1yim9sbp9yfgj7p2dq6v51c6bq1a62paii9ylgcj"))))
147 (build-system cargo-build-system)
148 (home-page "https://github.com/GuillaumeGomez/doc-comment")
149 (synopsis "Macro to generate doc comments")
150 (description "This package provides a way to generate doc comments
152 (license license:expat)))
154 (define-public rust-dtoa
161 (uri (crate-uri "dtoa" version))
162 (file-name (string-append name "-" version ".tar.gz"))
165 "0phbm7i0dpn44gzi07683zxaicjap5064w62pidci4fhhciv8mza"))))
166 (build-system cargo-build-system)
167 (home-page "https://github.com/dtolnay/dtoa")
168 (synopsis "Fast functions for printing floating-point primitives")
169 (description "This crate provides fast functions for printing
170 floating-point primitives to an @code{io::Write}.")
171 (license (list license:asl2.0
174 (define-public rust-fallible-iterator
176 (name "rust-fallible-iterator")
181 (uri (crate-uri "fallible-iterator" version))
182 (file-name (string-append name "-" version ".tar.gz"))
185 "1xq759lsr8gqss7hva42azn3whgrbrs2sd9xpn92c5ickxm1fhs4"))))
186 (build-system cargo-build-system)
187 (home-page "https://github.com/sfackler/rust-fallible-iterator")
188 (synopsis "Fallible iterator traits")
189 (description "If the @code{std} or @code{alloc} features are enabled, this
190 crate provides implementations for @code{Box}, @code{Vec}, @code{BTreeMap}, and
191 @code{BTreeSet}. If the @code{std} feature is enabled, this crate additionally
192 provides implementations for @code{HashMap} and @code{HashSet}.")
193 (license (list license:asl2.0
196 (define-public rust-fnv
203 (uri (crate-uri "fnv" version))
204 (file-name (string-append name "-" version ".tar.gz"))
207 "1ww56bi1r5b8id3ns9j3qxbi7w5h005rzhiryy0zi9h97raqbb9g"))))
208 (build-system cargo-build-system)
209 (home-page "https://github.com/servo/rust-fnv")
210 (synopsis "implementation of the Fowler-Noll-Vo hash function")
211 (description "The @code{fnv} hash function is a custom @code{Hasher}
212 implementation that is more efficient for smaller hash keys.")
213 (license (list license:asl2.0
216 (define-public rust-fs-extra
218 (name "rust-fs-extra")
223 (uri (crate-uri "fs_extra" version))
224 (file-name (string-append name "-" version ".tar.gz"))
227 "0x6675wdhsx277k1k1235jwcv38naf20d8kwrk948ds26hh4lajz"))))
228 (build-system cargo-build-system)
229 (home-page "https://github.com/webdesus/fs_extra")
230 (synopsis "Extra filesystem methods")
231 (description "Expanding opportunities standard library @code{std::fs} and
232 @code{std::io}. Recursively copy folders with recept information about
233 process and much more.")
234 (license license:expat)))
236 (define-public rust-futures
238 (name "rust-futures")
243 (uri (crate-uri "futures" version))
244 (file-name (string-append name "-" version ".tar.gz"))
247 "0saq8ffjw1pwf1pzhw3kq1z7dfq6wpd8x93dnni6vbkc799kkp25"))))
248 (build-system cargo-build-system)
249 (home-page "https://github.com/rust-lang-nursery/futures-rs")
250 (synopsis "Implementation of zero-cost futures in Rust")
251 (description "An implementation of @code{futures} and @code{streams}
252 featuring zero allocations, composability, and iterator-like interfaces.")
253 (license (list license:asl2.0
256 (define-public rust-hex
263 (uri (crate-uri "hex" version))
264 (file-name (string-append name "-" version ".tar.gz"))
267 "0xsdcjiik5j750j67zk42qdnmm4ahirk3gmkmcqgq7qls2jjcl40"))))
268 (build-system cargo-build-system)
269 (home-page "https://github.com/KokaKiwi/rust-hex")
270 (synopsis "Encode and decode data to/from hexadecimals")
271 (description "This crate allows for encoding and decoding data into/from
272 hexadecimal representation.")
273 (license (list license:asl2.0
276 (define-public rust-itoa
283 (uri (crate-uri "itoa" version))
284 (file-name (string-append name "-" version ".tar.gz"))
287 "0zvg2d9qv3avhf3d8ggglh6fdyw8kkwqg3r4622ly5yhxnvnc4jh"))))
288 (build-system cargo-build-system)
289 (home-page "https://github.com/dtolnay/itoa")
290 (synopsis "Fast functions for printing integer primitives")
291 (description "This crate provides fast functions for printing integer
292 primitives to an @code{io::Write}.")
293 (license (list license:asl2.0
296 (define-public rust-json
303 (uri (crate-uri "json" version))
304 (file-name (string-append name "-" version ".tar.gz"))
307 "1hj8c6xj5c2aqqszi8naaflmcdbya1i9byyjrq4iybxjb4q91mq1"))))
308 (build-system cargo-build-system)
309 (home-page "https://github.com/maciejhirsz/json-rust")
310 (synopsis "JSON implementation in Rust")
311 (description "This crate provides a JSON implementation in Rust, reducing
312 friction with idiomatic Rust structs to ease interopability.")
313 (license (list license:asl2.0
316 (define-public rust-maplit
323 (uri (crate-uri "maplit" version))
324 (file-name (string-append name "-" version ".tar.gz"))
327 "0hsczmvd6zkqgzqdjp5hfyg7f339n68w83n4pxvnsszrzssbdjq8"))))
328 (build-system cargo-build-system)
329 (home-page "https://github.com/bluss/maplit")
330 (synopsis "Collection of Map macros")
331 (description "This crate provides a collection of @code{literal} macros for
332 @code{HashMap}, @code{HashSet}, @code{BTreeMap}, and @code{BTreeSet.}")
333 (license (list license:asl2.0
336 (define-public rust-matches
338 (name "rust-matches")
343 (uri (crate-uri "matches" version))
344 (file-name (string-append name "-" version ".tar.gz"))
347 "020axl4q7rk9vz90phs7f8jas4imxal9y9kxl4z4v7a6719mrz3z"))))
348 (build-system cargo-build-system)
349 (home-page "https://github.com/SimonSapin/rust-std-candidates")
350 (synopsis "Macro to evaluate whether an expression matches a pattern.")
351 (description "This package provides a macro to evaluate, as a boolean,
352 whether an expression matches a pattern.")
353 (license license:expat)))
355 (define-public rust-md5
362 (uri (crate-uri "md5" version))
363 (file-name (string-append name "-" version ".tar.gz"))
366 "17b2xm4h4cvxsdjsf3kdrzqv2za60kak961xzi5kmw6g6djcssvy"))))
367 (build-system cargo-build-system)
368 (home-page "https://github.com/stainless-steel/md5")
369 (synopsis "MD5 hash function in Rust")
370 (description "The package provides the MD5 hash function.")
371 (license (list license:asl2.0
374 (define-public rust-peeking-take-while
376 (name "rust-peeking-take-while")
381 (uri (crate-uri "peeking_take_while" version))
382 (file-name (string-append name "-" version ".tar.gz"))
385 "16bhqr6rdyrp12zv381cxaaqqd0pwysvm1q8h2ygihvypvfprc8r"))))
386 (build-system cargo-build-system)
387 (home-page "https://github.com/fitzgen/peeking_take_while")
388 (synopsis "Provides the peeking_take_while iterator adaptor method")
390 "Like @code{Iterator::take_while}, but calls the predicate on a peeked
391 value. This allows you to use @code{Iterator::by_ref} and
392 @code{Iterator::take_while} together, and still get the first value for which
393 the @code{take_while} predicate returned false after dropping the @code{by_ref}.")
394 (license (list license:asl2.0
397 (define-public rust-percent-encoding
399 (name "rust-percent-encoding")
404 (uri (crate-uri "percent-encoding" version))
405 (file-name (string-append name "-" version ".tar.gz"))
408 "0m6rkp3iy11la04p6z3492rns6n693pvmx585dvfmzzlzak2hkxs"))))
409 (build-system cargo-build-system)
410 (home-page "https://github.com/servo/rust-url/")
411 (synopsis "Percent encoding and decoding")
412 (description "This crate provides percent encoding and decoding.")
413 (license (list license:asl2.0
416 (define-public rust-pin-utils
418 (name "rust-pin-utils")
419 (version "0.1.0-alpha.4")
423 (uri (crate-uri "pin-utils" version))
424 (file-name (string-append name "-" version ".tar.gz"))
427 "11xmyx00n4m37d546by2rxb8ryxs12v55cc172i3yak1rqccd52q"))))
428 (build-system cargo-build-system)
429 (home-page "https://github.com/rust-lang-nursery/pin-utils")
430 (synopsis "Utilities for pinning")
431 (description "This crate provides utilities for pinning values on the stack.")
432 (license (list license:asl2.0
435 (define-public rust-plain
442 (uri (crate-uri "plain" version))
443 (file-name (string-append name "-" version ".tar.gz"))
446 "19n1xbxb4wa7w891268bzf6cbwq4qvdb86bik1z129qb0xnnnndl"))))
447 (build-system cargo-build-system)
448 (home-page "https://github.com/randomites/plain")
449 (synopsis "Rust library that allows reinterpreting data safely")
450 (description "This package provides a small Rust library that allows users
451 to reinterpret data of certain types safely.")
452 (license (list license:asl2.0
455 (define-public rust-pocket-resources
457 (name "rust-pocket-resources")
462 (uri (crate-uri "pocket-resources" version))
463 (file-name (string-append name "-" version ".tar.gz"))
466 "1n2i5vmi8fdbw89wm5nz1ws1z9f1qax911p6ksg4scmdg23z6df1"))))
467 (build-system cargo-build-system)
468 (home-page "https://github.com/tomaka/pocket-resources")
469 (synopsis "Include resources in your applications")
470 (description "This crate allows you to include resources in your
472 (license license:expat)))
474 (define-public rust-ppv-lite86
476 (name "rust-ppv-lite86")
481 (uri (crate-uri "ppv-lite86" version))
482 (file-name (string-append name "-" version ".tar.gz"))
485 "06snnv338w341nicfqba2jgln5dsla72ndkgrw7h1dfdb3vgkjz3"))))
486 (build-system cargo-build-system)
487 (home-page "https://github.com/cryptocorrosion/cryptocorrosion")
488 (synopsis "Implementation of the crypto-simd API for x86")
489 (description "This crate provides an implementation of the crypto-simd API
491 (license (list license:asl2.0
494 (define-public rust-proc-macro2
496 (name "rust-proc-macro2")
501 (uri (crate-uri "proc-macro2" version))
503 (string-append name "-" version ".tar.gz"))
506 "0nd71fl24sys066jrha6j7i34nfkjv44yzw8yww9742wmc8j0gfg"))))
507 (build-system cargo-build-system)
509 `(#:cargo-inputs (("rust-unicode-xid" ,rust-unicode-xid))
510 #:cargo-development-inputs (("rust-quote" ,rust-quote))))
511 (home-page "https://github.com/alexcrichton/proc-macro2")
512 (synopsis "Stable implementation of the upcoming new `proc_macro` API")
513 (description "This package provides a stable implementation of the upcoming new
514 `proc_macro` API. Comes with an option, off by default, to also reimplement itself
515 in terms of the upstream unstable API.")
517 (license (list license:asl2.0 license:expat))))
519 (define-public rust-quick-error
521 (name "rust-quick-error")
526 (uri (crate-uri "quick-error" version))
527 (file-name (string-append name "-" version ".tar.gz"))
530 "1w6kgwwv7p7zr0yyg5rb315lkk24bimywklwx7fsvsbwi10bjx4j"))))
531 (build-system cargo-build-system)
532 (home-page "http://github.com/tailhook/quick-error")
533 (synopsis "Macro which makes error types pleasant to write")
534 (description "This crate provides a macro which makes error types pleasant
536 (license (list license:asl2.0
539 (define-public rust-quote
546 (uri (crate-uri "quote" version))
548 (string-append name "-" version ".tar.gz"))
551 "1nw0klza45hf127kfyrpxsxd5jw2l6h21qxalil3hkr7bnf7kx7s"))))
552 (build-system cargo-build-system)
554 `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2))))
555 (home-page "https://github.com/dtolnay/quote")
556 (synopsis "Quasi-quoting macro quote!(...)")
557 (description "Quasi-quoting macro quote!(...)")
559 (license (list license:asl2.0 license:expat))))
561 (define-public rust-rustc-std-workspace-core
563 (name "rust-rustc-std-workspace-core")
568 (uri (crate-uri "rustc-std-workspace-core" version))
569 (file-name (string-append name "-" version ".tar.gz"))
572 "1309xhwyai9xpz128xrfjqkmnkvgjwddznmj7brbd8i8f58zamhr"))))
573 (build-system cargo-build-system)
574 (home-page "https://crates.io/crates/rustc-std-workspace-core")
575 (synopsis "Explicitly empty crate for rust-lang/rust integration")
576 (description "This crate provides an explicitly empty crate for
577 rust-lang/rust integration.")
578 (license (list license:asl2.0
581 (define-public rust-scoped-tls
583 (name "rust-scoped-tls")
588 (uri (crate-uri "scoped-tls" version))
589 (file-name (string-append name "-" version ".tar.gz"))
592 "1hj8lifzvivdb1z02lfnzkshpvk85nkgzxsy2hc0zky9wf894spa"))))
593 (build-system cargo-build-system)
594 (home-page "https://github.com/alexcrichton/scoped-tls")
595 (synopsis "Rust library providing the old standard library's scoped_thread_local")
596 (description "This crate provides a library implementation of the standard
597 library's old @code{scoped_thread_local!} macro for providing scoped access to
598 @dfn{thread local storage} (TLS) so any type can be stored into TLS.")
599 (license (list license:asl2.0
602 (define-public rust-unicode-xid
604 (name "rust-unicode-xid")
609 (uri (crate-uri "unicode-xid" version))
611 (string-append name "-" version ".tar.gz"))
614 "1z57lqh4s18rr4x0j4fw4fmp9hf9346h0kmdgqsqx0fhjr3k0wpw"))))
615 (build-system cargo-build-system)
617 "https://github.com/unicode-rs/unicode-xid")
618 (synopsis "Determine Unicode XID related properties")
619 (description "Determine whether characters have the XID_Start
620 or XID_Continue properties according to Unicode Standard Annex #31.")
622 (license (list license:asl2.0 license:expat))))