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>
4 ;;; Copyright © 2019 Nicolas Goaziou <mail@nicolasgoaziou.fr>
5 ;;; Copyright © 2019 Giacomo Leidi <goodoldpaul@autistici.org>
7 ;;; This file is part of GNU Guix.
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 (define-module (gnu packages crates-io)
23 #:use-module (guix build-system cargo)
24 #:use-module (guix download)
25 #:use-module ((guix licenses) #:prefix license:)
26 #:use-module (guix packages)
27 #:use-module (gnu packages compression)
28 #:use-module (gnu packages gcc)
29 #:use-module (gnu packages jemalloc)
30 #:use-module (gnu packages maths)
31 #:use-module (gnu packages pkg-config))
34 ;;; Please: Try to add new module packages in alphabetic order.
37 (define-public rust-adler32
44 (uri (crate-uri "adler32" version))
46 (string-append name "-" version ".tar.gz"))
49 "0p7fxlnks9l7p7rwfqi7aqgnk2bps5zc0rjiw00mdw19nnbjjlky"))))
50 (build-system cargo-build-system)
52 `(#:cargo-development-inputs (("rust-rand" ,rust-rand))))
53 (home-page "https://github.com/remram44/adler32-rs")
54 (synopsis "Implementation of the Adler32 rolling hash algorithm")
56 "This library is an implementation of the Adler32 rolling hash algorithm in
57 the Rust programming language.")
58 (license (list license:bsd-3
61 (define-public rust-antidote
63 (name "rust-antidote")
68 (uri (crate-uri "antidote" version))
69 (file-name (string-append name "-" version ".tar.gz"))
72 "19g2sw2qa2ibnh4x7j1snk46593jgx6y7rnvva496ynq61af5z9l"))))
73 (build-system cargo-build-system)
74 (home-page "https://github.com/sfackler/rust-antidote")
75 (synopsis "Poison-free Mutex and RwLock types")
77 "These types expose identical APIs to the standard library @code{Mutex} and
78 @code{RwLock} except that they do not return @code{PoisonError}s.")
79 (license (list license:asl2.0
82 (define-public rust-atty
89 (uri (crate-uri "atty" version))
90 (file-name (string-append name "-" version ".tar.gz"))
93 "140sswp1bwqwc4zk80bxkbnfb3g936hgrb77g9g0k1zcld3wc0qq"))))
94 (build-system cargo-build-system)
97 (("rust-libc" ,rust-libc)
98 ("rust-winapi" ,rust-winapi))
99 #:tests? #f)) ; tests fail in our sandbox
100 (home-page "https://github.com/softprops/atty")
101 (synopsis "A simple interface for querying atty")
103 "This package provides a simple interface for querying atty.")
104 (license license:expat)))
106 (define-public rust-autocfg
108 (name "rust-autocfg")
113 (uri (crate-uri "autocfg" version))
114 (file-name (string-append name "-" version ".tar.gz"))
117 "0asl6fnc35yk5l2rxwhp25v128jgm45dp754h9z8x51b6n90w4r2"))))
118 (build-system cargo-build-system)
119 (home-page "https://github.com/cuviper/autocfg")
120 (synopsis "Automatic cfg for Rust compiler features")
121 (description "Rust library for build scripts to automatically configure
122 code based on compiler support. Code snippets are dynamically tested to see
123 if the @code{rustc} will accept them, rather than hard-coding specific version
125 (license (list license:asl2.0
128 (define-public rust-base-x
135 (uri (crate-uri "base-x" version))
136 (file-name (string-append name "-" version ".tar.gz"))
139 "0hv4y5cdhv6bk0ghk2434clw8v4mmk5cc9lsh6qrpri92zlfmx3n"))))
140 (build-system cargo-build-system)
142 `(#:cargo-development-inputs
143 (("rust-bencher" ,rust-bencher)
144 ("rust-json" ,rust-json)
145 ("rust-rand" ,rust-rand-0.3))))
146 (home-page "https://github.com/OrKoN/base-x-rs")
147 (synopsis "Encode/decode any base")
148 (description "This library provides for encoding and decoding any base.")
149 (license license:expat)))
151 (define-public rust-bencher
153 (name "rust-bencher")
158 (uri (crate-uri "bencher" version))
159 (file-name (string-append name "-" version ".tar.gz"))
162 "1x8p2xblgqssay8cdykp5pkfc0np0jk5bs5cx4f5av097aav9zbx"))))
163 (build-system cargo-build-system)
164 (home-page "https://github.com/bluss/bencher/")
165 (synopsis "Port of the libtest benchmark runner to Rust stable")
166 (description "This package provides a port of the libtest (unstable Rust)
167 benchmark runner to Rust stable releases. Supports running benchmarks and
168 filtering based on the name. Benchmark execution works exactly the same way
169 and no more (caveat: black_box is still missing!).")
170 (license (list license:asl2.0
173 (define-public rust-bitflags
175 (name "rust-bitflags")
180 (uri (crate-uri "bitflags" version))
181 (file-name (string-append name "-" version ".tar.gz"))
184 "1zc1qb1hwsnl2d8rhzicsv9kqd5b2hwbrscrcfw5as4sfr35659x"))))
185 (build-system cargo-build-system)
186 (home-page "https://github.com/bitflags/bitflags")
187 (synopsis "Macro to generate structures which behave like bitflags")
188 (description "This package provides a macro to generate structures which
189 behave like a set of bitflags.")
190 (license (list license:asl2.0
193 (define-public rust-blas-sys
195 (name "rust-blas-sys")
200 (uri (crate-uri "blas-sys" version))
201 (file-name (string-append name "-" version ".tar.gz"))
204 "0h14zjycwc76v15h8qll9z1xiryvmpvsb5gam97pqpdjrrwv5c8k"))))
205 (build-system cargo-build-system)
207 `(#:cargo-inputs (("rust-libc" ,rust-libc))))
208 (home-page "https://github.com/blas-lapack-rs/blas-sys")
209 (synopsis "Bindings to BLAS (Fortran)")
211 "Ths package provides bindings to BLAS (Fortran).")
212 (license (list license:asl2.0
215 (define-public rust-cargon
222 (uri (crate-uri "cargon" version))
223 (file-name (string-append name "-" version ".tar.gz"))
226 "1cszlab7jk736p0lb50ag4l9nv72m7j41bwrmygl0lr4iz0350w2"))))
227 (build-system cargo-build-system)
230 (("rust-gcc" ,rust-gcc))))
231 (home-page "https://github.com/bryant/argon2rs")
232 (synopsis "Thin wrapper around the Argon2 C library")
234 "This package provides a thin wrapper around the Argon2 C library. It is
235 used in argon2rs' bench suite.")
236 (license license:wtfpl2)))
238 (define-public rust-cblas-sys
240 (name "rust-cblas-sys")
245 (uri (crate-uri "cblas-sys" version))
246 (file-name (string-append name "-" version ".tar.gz"))
249 "0rgsn3klhhh09d8qf3b87zl4rwk93l2g0qzh9hhb0lff5kcfrzmn"))))
250 (build-system cargo-build-system)
252 `(#:cargo-inputs (("rust-libc" ,rust-libc))))
253 (home-page "https://github.com/blas-lapack-rs/cblas-sys")
254 (synopsis "Bindings to CBLAS (C)")
256 "The package provides bindings to CBLAS (C).")
257 (license (list license:asl2.0
260 (define-public rust-cc
267 (uri (crate-uri "cc" version))
268 (file-name (string-append name "-" version ".tar.gz"))
271 "1zxzd559dbbf1iwdzmkj7czapzccs17kqqmsj9ayijpdix5rrbld"))))
272 (build-system cargo-build-system)
275 ;(("rust-rayon" ,rust-rayon))
276 #:cargo-development-inputs
277 (("rust-tempdir" ,rust-tempdir))
279 (modify-phases %standard-phases
280 (add-after 'unpack 'remove-optional-deps
282 (substitute* "Cargo.toml.orig"
283 ((".*optional.*") "\n")
284 ((".*features.*") "")
285 ((".*parallel.*") ""))
286 (delete-file "Cargo.toml")
287 (copy-file "Cargo.toml.orig" "Cargo.toml")
289 #:tests? #f)) ; Tests require cc-test from git repo.
290 (home-page "https://github.com/alexcrichton/cc-rs")
291 (synopsis "Invoke the native C compiler")
293 "This package provides a build-time dependency for Cargo build scripts to
294 assist in invoking the native C compiler to compile native C code into a static
295 archive to be linked into Rustcode.")
296 (license (list license:asl2.0
299 (define-public rust-cfg-if
306 (uri (crate-uri "cfg-if" version))
307 (file-name (string-append name "-" version ".tar.gz"))
310 "0csygklgz3ybpr0670rkip49zh76m43ar3k7xgypkzbzrwycx1ml"))))
311 (build-system cargo-build-system)
312 (home-page "https://github.com/alexcrichton/cfg-if")
313 (synopsis "Define an item depending on parameters")
314 (description "This package provides a macro to ergonomically define an item
315 depending on a large number of #[cfg] parameters. Structured like an
316 @code{if-else} chain, the first matching branch is the item that gets emitted.")
317 (license (list license:asl2.0
320 (define-public rust-clicolors-control
322 (name "rust-clicolors-control")
327 (uri (crate-uri "clicolors-control" version))
328 (file-name (string-append name "-" version ".tar.gz"))
331 "1y80cgarxhrd1bz5yjm81r444v6flvy36aaxrrsac0yhfd6gvavk"))))
332 (build-system cargo-build-system)
335 (("rust-atty" ,rust-atty)
336 ("rust-lazy-static" ,rust-lazy-static)
337 ("rust-libc" ,rust-libc)
338 ("rust-winapi" ,rust-winapi))))
339 (home-page "https://github.com/mitsuhiko/clicolors-control")
340 (synopsis "Common utility library to control CLI colorization")
342 "This package provides a common utility library to control CLI
344 (license license:expat)))
346 (define-public rust-cloudabi
348 (name "rust-cloudabi")
353 (uri (crate-uri "cloudabi" version))
354 (file-name (string-append name "-" version ".tar.gz"))
357 "0kxcg83jlihy0phnd2g8c2c303px3l2p3pkjz357ll6llnd5pz6x"))))
358 (build-system cargo-build-system)
361 (("rust-bitflags" ,rust-bitflags))))
362 (home-page "https://nuxi.nl/cloudabi/")
363 (synopsis "Low level interface to CloudABI")
365 "Low level interface to CloudABI. Contains all syscalls and related types.")
366 (license license:bsd-2)))
368 (define-public rust-cmake
375 (uri (crate-uri "cmake" version))
376 (file-name (string-append name "-" version ".tar.gz"))
379 "0qkwibkvx5xjazvv9v8gvdlpky2jhjxvcz014nrixgzqfyv2byw1"))))
380 (build-system cargo-build-system)
382 `(#:cargo-inputs (("rust-cc" ,rust-cc))))
383 (home-page "https://github.com/alexcrichton/cmake-rs")
384 (synopsis "Rust build dependency for running cmake")
386 "This package provides a build dependency for running @code{cmake} to build
387 a native library. The CMake executable is assumed to be @code{cmake} unless the
388 CMAKE environmental variable is set.")
389 (license (list license:asl2.0
392 ;; This package requires features which are unavailable
393 ;; on the stable releases of Rust.
394 (define-public rust-compiler-builtins
396 (name "rust-compiler-builtins")
401 (uri (crate-uri "compiler_builtins" version))
402 (file-name (string-append name "-" version ".tar.gz"))
405 "1fpabpmg8paj4r5a37vmidh1jx1b7a6ilxm4s3xsxczx27ybjcjf"))))
406 (build-system cargo-build-system)
409 (("rust-cc" ,rust-cc)
410 ("rust-rustc-std-workspace-core"
411 ,rust-rustc-std-workspace-core))))
412 (home-page "https://github.com/rust-lang-nursery/compiler-builtins")
413 (synopsis "Compiler intrinsics used by the Rust compiler")
415 "This package provides compiler intrinsics used by the Rust compiler. This
416 package is primarily useful when building the @code{core} crate yourself and you
417 need compiler-rt intrinsics.")
418 (properties `((hidden? . #t)))
419 (license (list license:asl2.0
422 (define-public rust-constant-time-eq
424 (name "rust-constant-time-eq")
429 (uri (crate-uri "constant_time_eq" version))
430 (file-name (string-append name "-" version ".tar.gz"))
433 "083icpr9xb72rrdxw3p4068dcspn6ai22jy7rhl2a8grfz448nlr"))))
434 (build-system cargo-build-system)
435 (home-page "https://crates.io/crates/constant_time_eq")
437 "Compares two equal-sized byte strings in constant time")
439 "This package compares two equal-sized byte strings in constant time.
440 It is inspired by the Linux kernel's @code{crypto_memneq}.")
441 (license license:cc0)))
443 (define-public rust-core-foundation-sys
445 (name "rust-core-foundation-sys")
450 (uri (crate-uri "core-foundation-sys" version))
451 (file-name (string-append name "-" version ".tar.gz"))
454 "0fzsw1j9g1x598yhwklg59l15hwzc0pyvs01w9fg2kin4598mjp7"))))
455 (build-system cargo-build-system)
456 (home-page "https://github.com/servo/core-foundation-rs")
457 (synopsis "Bindings to Core Foundation for OS X")
459 "Bindings to Core Foundation for OS X.")
460 (license (list license:asl2.0
463 (define-public rust-data-encoding
465 (name "rust-data-encoding")
470 (uri (crate-uri "data-encoding" version))
471 (file-name (string-append name "-" version ".tar.gz"))
474 "15xd6afhsjl08285piwczrafmckpp8i29padj8v12xhahshprx7l"))))
475 (build-system cargo-build-system)
476 (home-page "https://github.com/ia0/data-encoding")
477 (synopsis "Efficient and customizable data-encoding functions")
479 "This library provides encodings for many different common cases, including
480 hexadecimal, bas32, and base64.")
481 (license license:expat)))
483 (define-public rust-defmac
490 (uri (crate-uri "defmac" version))
491 (file-name (string-append name "-" version ".tar.gz"))
494 "01ff3jdmcc5waffkwllndnx5hsn414r7x1rq4ib73n7awsyzxkxv"))))
495 (build-system cargo-build-system)
496 (home-page "https://github.com/bluss/defmac")
497 (synopsis "Macro to define lambda-like macros inline")
498 (description "A macro to define lambda-like macros inline.")
499 (license (list license:asl2.0
502 (define-public rust-defmac-0.1
504 (inherit rust-defmac)
510 (uri (crate-uri "defmac" version))
511 (file-name (string-append name "-" version ".tar.gz"))
514 "17giv0n0n1r64z0dahfvkjy3ys517jxyhs8sd9lmgvcljpjyryxa"))))))
516 (define-public rust-discard
518 (name "rust-discard")
523 (uri (crate-uri "discard" version))
524 (file-name (string-append name "-" version ".tar.gz"))
527 "1h67ni5bxvg95s91wgicily4ix7lcw7cq0a5gy9njrybaibhyb91"))))
528 (build-system cargo-build-system)
529 (home-page "https://github.com/Pauan/rust-discard")
530 (synopsis "Allow for intentionally leaking memory")
531 (description "There are situations where you need to intentionally leak some
532 memory but not other memory. This package provides a discard trait which allows
533 for intentionally leaking memory")
534 (license license:expat)))
536 (define-public rust-doc-comment
538 (name "rust-doc-comment")
543 (uri (crate-uri "doc-comment" version))
544 (file-name (string-append name "-" version ".tar.gz"))
547 "15rsqxgarfpb1yim9sbp9yfgj7p2dq6v51c6bq1a62paii9ylgcj"))))
548 (build-system cargo-build-system)
549 (home-page "https://github.com/GuillaumeGomez/doc-comment")
550 (synopsis "Macro to generate doc comments")
551 (description "This package provides a way to generate doc comments
553 (license license:expat)))
555 (define-public rust-dtoa
562 (uri (crate-uri "dtoa" version))
563 (file-name (string-append name "-" version ".tar.gz"))
566 "0phbm7i0dpn44gzi07683zxaicjap5064w62pidci4fhhciv8mza"))))
567 (build-system cargo-build-system)
568 (home-page "https://github.com/dtolnay/dtoa")
569 (synopsis "Fast functions for printing floating-point primitives")
570 (description "This crate provides fast functions for printing
571 floating-point primitives to an @code{io::Write}.")
572 (license (list license:asl2.0
575 (define-public rust-fallible-iterator
577 (name "rust-fallible-iterator")
582 (uri (crate-uri "fallible-iterator" version))
583 (file-name (string-append name "-" version ".tar.gz"))
586 "1xq759lsr8gqss7hva42azn3whgrbrs2sd9xpn92c5ickxm1fhs4"))))
587 (build-system cargo-build-system)
588 (home-page "https://github.com/sfackler/rust-fallible-iterator")
589 (synopsis "Fallible iterator traits")
590 (description "If the @code{std} or @code{alloc} features are enabled, this
591 crate provides implementations for @code{Box}, @code{Vec}, @code{BTreeMap}, and
592 @code{BTreeSet}. If the @code{std} feature is enabled, this crate additionally
593 provides implementations for @code{HashMap} and @code{HashSet}.")
594 (license (list license:asl2.0
597 (define-public rust-filetime
599 (name "rust-filetime")
604 (uri (crate-uri "filetime" version))
605 (file-name (string-append name "-" version ".tar.gz"))
608 "0sflihq2l77xjrza7yjalnxsc7dxzg25rhzcfbd9vmyfah5kimvb"))))
609 (build-system cargo-build-system)
612 (("rust-cfg-if" ,rust-cfg-if)
613 ("rust-libc" ,rust-libc)
614 ("rust-redox-syscall" ,rust-redox-syscall)
615 ("rust-winapi" ,rust-winapi))
616 #:cargo-development-inputs
617 (("rust-tempdir" ,rust-tempdir))))
618 (home-page "https://github.com/alexcrichton/filetime")
619 (synopsis "Platform-agnostic accessors of timestamps in File metadata")
621 "This library contains a helper library for inspecting and setting the
622 various timestamps of files in Rust. This library takes into account
623 cross-platform differences in terms of where the timestamps are located, what
624 they are called, and how to convert them into a platform-independent
626 (license (list license:asl2.0
629 (define-public rust-findshlibs
631 (name "rust-findshlibs")
636 (uri (crate-uri "findshlibs" version))
637 (file-name (string-append name "-" version ".tar.gz"))
640 "1n2vagn0q5yim32hxkwi1cjgp3yn1dm45p7z8nw6lapywihhs9mi"))))
641 (build-system cargo-build-system)
644 (("rust-lazy-static" ,rust-lazy-static)
645 ("rust-libc" ,rust-libc))))
646 (home-page "https://github.com/gimli-rs/findshlibs")
647 (synopsis "Find the set of shared libraries loaded in the current process")
649 "Find the set of shared libraries loaded in the current process with a
650 cross platform API.")
651 (license (list license:asl2.0
654 (define-public rust-fixedbitset
656 (name "rust-fixedbitset")
661 (uri (crate-uri "fixedbitset" version))
662 (file-name (string-append name "-" version ".tar.gz"))
665 "0czam11mi80dbyhf4rd4lz0ihcf7vkfchrdcrn45wbs0h40dxm46"))))
666 (build-system cargo-build-system)
667 (home-page "https://github.com/bluss/fixedbitset")
668 (synopsis "FixedBitSet is a simple bitset collection")
669 (description "FixedBitSet is a simple bitset collection.")
670 (license (list license:asl2.0
673 (define-public rust-fnv
680 (uri (crate-uri "fnv" version))
681 (file-name (string-append name "-" version ".tar.gz"))
684 "1ww56bi1r5b8id3ns9j3qxbi7w5h005rzhiryy0zi9h97raqbb9g"))))
685 (build-system cargo-build-system)
686 (home-page "https://github.com/servo/rust-fnv")
687 (synopsis "implementation of the Fowler-Noll-Vo hash function")
688 (description "The @code{fnv} hash function is a custom @code{Hasher}
689 implementation that is more efficient for smaller hash keys.")
690 (license (list license:asl2.0
693 (define-public rust-foreign-types-shared
695 (name "rust-foreign-types-shared")
700 (uri (crate-uri "foreign-types-shared" version))
701 (file-name (string-append name "-" version ".tar.gz"))
704 "0kanxlif1vp0ffh2r9l610jqbkmb3183yqykxq1z5w1vay2rn7y6"))))
705 (build-system cargo-build-system)
706 (home-page "https://github.com/sfackler/foreign-types")
707 (synopsis "An internal crate used by foreign-types")
709 "An internal crate used by foreign-types.")
710 (license (list license:asl2.0
713 (define-public rust-fs-extra
715 (name "rust-fs-extra")
720 (uri (crate-uri "fs_extra" version))
721 (file-name (string-append name "-" version ".tar.gz"))
724 "0x6675wdhsx277k1k1235jwcv38naf20d8kwrk948ds26hh4lajz"))))
725 (build-system cargo-build-system)
726 (home-page "https://github.com/webdesus/fs_extra")
727 (synopsis "Extra filesystem methods")
728 (description "Expanding opportunities standard library @code{std::fs} and
729 @code{std::io}. Recursively copy folders with recept information about
730 process and much more.")
731 (license license:expat)))
733 (define-public rust-fuchsia-cprng
735 (name "rust-fuchsia-cprng")
740 (uri (crate-uri "fuchsia-cprng" version))
741 (file-name (string-append name "-" version ".tar.gz"))
744 "1fnkqrbz7ixxzsb04bsz9p0zzazanma8znfdqjvh39n14vapfvx0"))))
745 (build-system cargo-build-system)
747 `(#:tests? #f)) ; tests require zircon
748 (home-page "https://fuchsia.googlesource.com/fuchsia/+/master/garnet/public/rust/fuchsia-cprng")
749 (synopsis "Fuchsia cryptographically secure pseudorandom number generator")
750 (description "Rust crate for the Fuchsia cryptographically secure
751 pseudorandom number generator")
752 (license license:bsd-3)))
754 (define-public rust-fuchsia-zircon
756 (name "rust-fuchsia-zircon")
761 (uri (crate-uri "fuchsia-zircon" version))
762 (file-name (string-append name "-" version ".tar.gz"))
765 "10jxc5ks1x06gpd0xg51kcjrxr35nj6qhx2zlc5n7bmskv3675rf"))))
766 (build-system cargo-build-system)
769 (("rust-bitflags" ,rust-bitflags)
770 ("rust-fuchsia-zircon-sys" ,rust-fuchsia-zircon-sys))
771 #:tests? #f)) ; tests require zircon
772 (home-page "https://fuchsia.googlesource.com/garnet/")
773 (synopsis "Rust bindings for the Zircon kernel")
774 (description "Rust bindings for the Zircon kernel.")
775 (license license:bsd-3)))
777 (define-public rust-fuchsia-zircon-sys
779 (name "rust-fuchsia-zircon-sys")
784 (uri (crate-uri "fuchsia-zircon-sys" version))
785 (file-name (string-append name "-" version ".tar.gz"))
788 "19zp2085qsyq2bh1gvcxq1lb8w6v6jj9kbdkhpdjrl95fypakjix"))))
789 (build-system cargo-build-system)
791 `(#:tests? #f)) ; tests require zircon
792 (home-page "https://fuchsia.googlesource.com/garnet/")
793 (synopsis "Low-level Rust bindings for the Zircon kernel")
794 (description "Low-level Rust bindings for the Zircon kernel.")
795 (license license:bsd-3)))
797 (define-public rust-futures
799 (name "rust-futures")
804 (uri (crate-uri "futures" version))
805 (file-name (string-append name "-" version ".tar.gz"))
808 "0saq8ffjw1pwf1pzhw3kq1z7dfq6wpd8x93dnni6vbkc799kkp25"))))
809 (build-system cargo-build-system)
810 (home-page "https://github.com/rust-lang-nursery/futures-rs")
811 (synopsis "Implementation of zero-cost futures in Rust")
812 (description "An implementation of @code{futures} and @code{streams}
813 featuring zero allocations, composability, and iterator-like interfaces.")
814 (license (list license:asl2.0
817 (define-public rust-futures-cpupool
819 (name "rust-futures-cpupool")
824 (uri (crate-uri "futures-cpupool" version))
825 (file-name (string-append name "-" version ".tar.gz"))
828 "1r32456gpblzfvnkf60545v8acqk7gh5zhyhi1jn669k9gicv45b"))))
829 (build-system cargo-build-system)
832 (("rust-futures" ,rust-futures)
833 ("rust-num-cpus" ,rust-num-cpus))))
834 (home-page "https://github.com/alexcrichton/futures-rs")
835 (synopsis "Implementation of thread pools which hand out futures")
837 "An implementation of thread pools which hand out futures to the results of
838 the computation on the threads themselves.")
839 (license (list license:asl2.0
842 (define-public rust-futures-io-preview
844 (name "rust-futures-io-preview")
845 (version "0.3.0-alpha.17")
849 (uri (crate-uri "futures-io-preview" version))
850 (file-name (string-append name "-" version ".tar.gz"))
853 "0fhvwhdb8ywjjbfng0ra1r8yyc9yzpyxg9sv3spb3f7w0lk40bh8"))))
854 (build-system cargo-build-system)
855 (home-page "https://rust-lang-nursery.github.io/futures-rs/")
856 (synopsis "Async read and write traits for the futures library")
857 (description "This crate provides the @code{AsyncRead} and
858 @code{AsyncWrite} traits for the @code{futures-rs} library.")
859 (license (list license:asl2.0
862 (define-public rust-gcc
870 (uri (crate-uri "gcc" version))
871 (file-name (string-append name "-" version ".tar.gz"))
874 "1hng1sajn4r67hndvhjysswz8niayjwvcj42zphpxzhbz89kjpwg"))))
875 (build-system cargo-build-system)
878 ;(("rust-rayon" ,rust-rayon))
879 #:cargo-development-inputs
880 (("rust-tempdir" ,rust-tempdir))
882 (modify-phases %standard-phases
883 (add-after 'unpack 'remove-optional-deps
885 (substitute* "Cargo.toml.orig"
886 ((".*optional.*") "\n")
887 ((".*features.*") "")
888 ((".*parallel.*") ""))
889 (delete-file "Cargo.toml")
890 (copy-file "Cargo.toml.orig" "Cargo.toml")
893 (home-page "https://github.com/alexcrichton/cc-rs")
894 (synopsis "Library to compile C/C++ code into a Rust library/application")
896 "This package provides a build-time dependency for Cargo build scripts to
897 assist in invoking the native C compiler to compile native C code into a static
898 archive to be linked into Rustcode.")
899 (license (list license:asl2.0
902 (define-public rust-heapsize
904 (name "rust-heapsize")
909 (uri (crate-uri "heapsize" version))
910 (file-name (string-append name "-" version ".tar.gz"))
913 "0q94q9ppqjgrw71swiyia4hgby2cz6dldp7ij57nkvhd6zmfcy8n"))))
914 (build-system cargo-build-system)
916 `(#:cargo-inputs (("rust-winapi" ,rust-winapi))
917 ;; Tests assume rust is built with jemalloc.
918 ;; https://github.com/servo/heapsize/issues/74
919 #:cargo-test-flags '("--features" "flexible-tests")))
920 (home-page "https://github.com/servo/heapsize")
921 (synopsis "Measure the total runtime size of an object on the heap")
923 "Infrastructure for measuring the total runtime size of an object on the
925 (license (list license:asl2.0
928 (define-public rust-heapsize-0.3
930 (inherit rust-heapsize)
931 (name "rust-heapsize")
936 (uri (crate-uri "heapsize" version))
937 (file-name (string-append name "-" version ".tar.gz"))
940 "0dmwc37vgsdjzk10443dj4f23439i9gch28jcwzmry3chrwx8v2m"))))
942 `(#:cargo-inputs (("rust-kernel32-sys" ,rust-kernel32-sys))
943 #:tests? #f)))) ;; No flexible-tests feature flags on this release.
945 ;; This package makes use of removed features
946 (define-public rust-heapsize-plugin
948 (name "rust-heapsize-plugin")
953 (uri (crate-uri "heapsize_plugin" version))
954 (file-name (string-append name "-" version ".tar.gz"))
957 "1i72isf699q9jl167g2kg4xd6h3cd05rc79zaph58aqjy0g0m9y9"))))
958 (build-system cargo-build-system)
960 `(#:cargo-development-inputs (("rust-heapsize" ,rust-heapsize-0.3))
962 (modify-phases %standard-phases
963 (add-after 'unpack 'fix-Cargo-toml
965 (substitute* "Cargo.toml"
966 (("path = \"..\", ") ""))
968 (home-page "https://github.com/servo/heapsize")
969 (synopsis "Measure runtime size of an object on the heap")
971 "This package automatically generates infrastructure for measuring the
972 total runtime size of an object on the heap")
973 (properties `((hidden? . #t)))
974 (license license:mpl2.0)))
976 (define-public rust-hex
983 (uri (crate-uri "hex" version))
984 (file-name (string-append name "-" version ".tar.gz"))
987 "0xsdcjiik5j750j67zk42qdnmm4ahirk3gmkmcqgq7qls2jjcl40"))))
988 (build-system cargo-build-system)
989 (home-page "https://github.com/KokaKiwi/rust-hex")
990 (synopsis "Encode and decode data to/from hexadecimals")
991 (description "This crate allows for encoding and decoding data into/from
992 hexadecimal representation.")
993 (license (list license:asl2.0
996 (define-public rust-hostname
998 (name "rust-hostname")
1003 (uri (crate-uri "hostname" version))
1004 (file-name (string-append name "-" version ".tar.gz"))
1007 "0kprf862qaa7lwdms6aw7f3275h0j2rwhs9nz5784pm8hdmb9ki1"))))
1008 (build-system cargo-build-system)
1011 (("rust-libc" ,rust-libc)
1012 ("rust-winutil" ,rust-winutil))))
1013 (home-page "https://github.com/fengcen/hostname")
1014 (synopsis "Get hostname for Rust")
1016 "Get hostname for Rust.")
1017 (license license:expat)))
1019 (define-public rust-iovec
1026 (uri (crate-uri "iovec" version))
1027 (file-name (string-append name "-" version ".tar.gz"))
1030 "025vi072m22299z3fg73qid188z2iip7k41ba6v5v5yhwwby9rnv"))))
1031 (build-system cargo-build-system)
1034 (("rust-libc" ,rust-libc)
1035 ("rust-winapi" ,rust-winapi-0.2))))
1036 (home-page "https://github.com/carllerche/iovec")
1037 (synopsis "Portable buffer type for scatter/gather I/O operations")
1039 "Portable buffer type for scatter/gather I/O operations.")
1040 (license (list license:asl2.0
1043 (define-public rust-itoa
1050 (uri (crate-uri "itoa" version))
1051 (file-name (string-append name "-" version ".tar.gz"))
1054 "0zvg2d9qv3avhf3d8ggglh6fdyw8kkwqg3r4622ly5yhxnvnc4jh"))))
1055 (build-system cargo-build-system)
1056 (home-page "https://github.com/dtolnay/itoa")
1057 (synopsis "Fast functions for printing integer primitives")
1058 (description "This crate provides fast functions for printing integer
1059 primitives to an @code{io::Write}.")
1060 (license (list license:asl2.0
1063 (define-public rust-jemalloc-sys
1065 (name "rust-jemalloc-sys")
1070 (uri (crate-uri "jemalloc-sys" version))
1071 (file-name (string-append name "-" version ".tar.gz"))
1074 "0ify9vlql01qhfxlj7d4p9jvcp90mj2h69nkbq7slccvbhzryfqd"))))
1075 (build-system cargo-build-system)
1078 (("rust-libc" ,rust-libc)
1079 ("rust-cc" ,rust-cc)
1080 ("rust-fs-extra" ,rust-fs-extra))
1082 (modify-phases %standard-phases
1083 (add-after 'unpack 'override-jemalloc
1084 (lambda* (#:key inputs #:allow-other-keys)
1085 (let ((jemalloc (assoc-ref inputs "jemalloc")))
1086 (delete-file-recursively "jemalloc")
1087 (setenv "JEMALLOC_OVERRIDE"
1088 (string-append jemalloc "/lib/libjemalloc_pic.a")))
1091 `(("jemalloc" ,jemalloc)))
1092 (home-page "https://github.com/gnzlbg/jemallocator")
1093 (synopsis "Rust FFI bindings to jemalloc")
1094 (description "This package provides Rust FFI bindings to jemalloc.")
1095 (license (list license:asl2.0
1098 (define-public rust-json
1105 (uri (crate-uri "json" version))
1106 (file-name (string-append name "-" version ".tar.gz"))
1109 "1hj8c6xj5c2aqqszi8naaflmcdbya1i9byyjrq4iybxjb4q91mq1"))))
1110 (build-system cargo-build-system)
1111 (home-page "https://github.com/maciejhirsz/json-rust")
1112 (synopsis "JSON implementation in Rust")
1113 (description "This crate provides a JSON implementation in Rust, reducing
1114 friction with idiomatic Rust structs to ease interopability.")
1115 (license (list license:asl2.0
1118 (define-public rust-kernel32-sys
1120 (name "rust-kernel32-sys")
1125 (uri (crate-uri "kernel32-sys" version))
1126 (file-name (string-append name "-" version ".tar.gz"))
1129 "1389av0601a9yz8dvx5zha9vmkd6ik7ax0idpb032d28555n41vm"))))
1130 (build-system cargo-build-system)
1133 (("rust-winapi" ,rust-winapi-0.2)
1134 ("rust-winapi-build" ,rust-winapi-build))
1136 (modify-phases %standard-phases
1137 (add-after 'unpack 'fix-Cargo-toml
1139 (substitute* "Cargo.toml"
1140 ((", path =.* }") "}\n"))
1142 (home-page "https://github.com/retep998/winapi-rs")
1143 (synopsis "Function definitions for the Windows API library kernel32")
1144 (description "Contains function definitions for the Windows API library
1146 (license license:expat)))
1148 (define-public rust-language-tags
1150 (name "rust-language-tags")
1155 (uri (crate-uri "language-tags" version))
1156 (file-name (string-append name "-" version ".tar.gz"))
1159 "16hrjdpa827carq5x4b8zhas24d8kg4s16m6nmmn1kb7cr5qh7d9"))))
1160 (build-system cargo-build-system)
1163 (("rust-heapsize" ,rust-heapsize-0.3))
1164 #:cargo-development-inputs
1165 (("rust-heapsize-plugin" ,rust-heapsize-plugin))))
1166 (home-page "https://github.com/pyfisch/rust-language-tags")
1167 (synopsis "Language tags for Rust")
1169 "Language tags can be used identify human languages, scripts e.g. Latin
1170 script, countries and other regions. They are commonly used in HTML and HTTP
1171 @code{Content-Language} and @code{Accept-Language} header fields. This package
1172 currently supports parsing (fully conformant parser), formatting and comparing
1174 (license license:expat)))
1176 (define-public rust-lazy-static
1178 (name "rust-lazy-static")
1183 (uri (crate-uri "lazy_static" version))
1184 (file-name (string-append name "-" version ".tar.gz"))
1187 "052ac27w189hrf1j3hz7sga46rp84zl2hqnzyihxv78mgzr2jmxw"))))
1188 (build-system cargo-build-system)
1190 `(#:cargo-inputs (("rust-spin" ,rust-spin))))
1191 (home-page "https://github.com/rust-lang-nursery/lazy-static.rs")
1192 (synopsis "Macro for declaring lazily evaluated statics in Rust")
1194 "This package provides a macro for declaring lazily evaluated statics in
1195 Rust. Using this macro, it is possible to have @code{static}s that require code
1196 to be executed at runtime in order to be initialized. This includes anything
1197 requiring heap allocations, like vectors or hash maps, as well as anything that
1198 requires non-const function calls to be computed.")
1199 (license (list license:asl2.0
1202 (define-public rust-libc
1209 (uri (crate-uri "libc" version))
1211 (string-append name "-" version ".tar.gz"))
1214 "1fh69kpjg8hqff36kdczx7sax98gk4qs4ws1dwvjz0rgip0d5z1l"))))
1215 (build-system cargo-build-system)
1218 (("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core))))
1219 (home-page "https://github.com/rust-lang/libc")
1220 (synopsis "Raw FFI bindings to platform libraries like libc")
1222 "libc provides all of the definitions necessary to easily
1223 interoperate with C code (or \"C-like\" code) on each of the platforms
1224 that Rust supports. This includes type definitions (e.g., c_int),
1225 constants (e.g., EINVAL) as well as function headers (e.g., malloc).
1227 This crate exports all underlying platform types, functions, and
1228 constants under the crate root, so all items are accessible as
1229 @samp{libc::foo}. The types and values of all the exported APIs match
1230 the platform that libc is compiled for.")
1231 (license (list license:expat
1234 (define-public rust-libloading
1236 (name "rust-libloading")
1241 (uri (crate-uri "libloading" version))
1242 (file-name (string-append name "-" version ".tar.gz"))
1245 "0lyply8rcqc8agajzxs7bq6ivba9dnn1i68kgb9z2flnfjh13cgj"))))
1246 (build-system cargo-build-system)
1249 (("rust-cc" ,rust-cc)
1250 ("rust-winapi" ,rust-winapi))))
1251 (home-page "https://github.com/nagisa/rust_libloading/")
1252 (synopsis "Rust library for loading dynamic libraries")
1254 "A memory-safer wrapper around system dynamic library loading primitives.
1255 The most important safety guarantee by this library is prevention of
1256 dangling-Symbols that may occur after a Library is unloaded. Using this library
1257 allows loading dynamic libraries (also known as shared libraries) as well as use
1258 functions and static variables these libraries contain.")
1259 (license license:isc)))
1261 (define-public rust-log
1268 (uri (crate-uri "log" version))
1269 (file-name (string-append name "-" version ".tar.gz"))
1272 "0nsn28syc49vvjhxcfc8261rd1frhjc0r4bn9v3mqvps3ra7f3w8"))))
1273 (build-system cargo-build-system)
1274 (home-page "https://github.com/rust-lang-nursery/log")
1275 (synopsis "Lightweight logging")
1277 "This package provides a lightweight logging facade for Rust")
1278 (license (list license:asl2.0
1281 (define-public rust-lzma-sys
1283 (name "rust-lzma-sys")
1288 (uri (crate-uri "lzma-sys" version))
1289 (file-name (string-append name "-" version ".tar.gz"))
1292 "14gyj256yh0wm77jbvmlc39v7lfn0navpfrja4alczarzlc8ir2k"))))
1293 (build-system cargo-build-system)
1296 (("rust-cc" ,rust-cc)
1297 ("rust-libc" ,rust-libc)
1298 ("rust-pkg-config" ,rust-pkg-config))
1300 (modify-phases %standard-phases
1301 (add-after 'unpack 'unbundle-xz
1302 (lambda* (#:key inputs #:allow-other-keys)
1303 (let ((xz (assoc-ref inputs "xz")))
1304 (delete-file-recursively "xz-5.2"))
1307 `(("pkg-config" ,pkg-config)
1309 (home-page "https://github.com/alexcrichton/xz2-rs")
1310 (synopsis "Bindings to liblzma for lzma and xz stream encoding/decoding")
1312 "This package contains the raw bindings to liblzma which contains an
1313 implementation of LZMA and xz stream encoding/decoding.")
1314 (license (list license:asl2.0
1317 (define-public rust-maplit
1319 (name "rust-maplit")
1324 (uri (crate-uri "maplit" version))
1325 (file-name (string-append name "-" version ".tar.gz"))
1328 "0hsczmvd6zkqgzqdjp5hfyg7f339n68w83n4pxvnsszrzssbdjq8"))))
1329 (build-system cargo-build-system)
1330 (home-page "https://github.com/bluss/maplit")
1331 (synopsis "Collection of Map macros")
1332 (description "This crate provides a collection of @code{literal} macros for
1333 @code{HashMap}, @code{HashSet}, @code{BTreeMap}, and @code{BTreeSet.}")
1334 (license (list license:asl2.0
1337 (define-public rust-matches
1339 (name "rust-matches")
1344 (uri (crate-uri "matches" version))
1345 (file-name (string-append name "-" version ".tar.gz"))
1348 "020axl4q7rk9vz90phs7f8jas4imxal9y9kxl4z4v7a6719mrz3z"))))
1349 (build-system cargo-build-system)
1350 (home-page "https://github.com/SimonSapin/rust-std-candidates")
1351 (synopsis "Macro to evaluate whether an expression matches a pattern.")
1352 (description "This package provides a macro to evaluate, as a boolean,
1353 whether an expression matches a pattern.")
1354 (license license:expat)))
1356 (define-public rust-md5
1363 (uri (crate-uri "md5" version))
1364 (file-name (string-append name "-" version ".tar.gz"))
1367 "17b2xm4h4cvxsdjsf3kdrzqv2za60kak961xzi5kmw6g6djcssvy"))))
1368 (build-system cargo-build-system)
1369 (home-page "https://github.com/stainless-steel/md5")
1370 (synopsis "MD5 hash function in Rust")
1371 (description "The package provides the MD5 hash function.")
1372 (license (list license:asl2.0
1375 (define-public rust-memmap
1377 (name "rust-memmap")
1382 (uri (crate-uri "memmap" version))
1383 (file-name (string-append name "-" version ".tar.gz"))
1386 "0ns7kkd1h4pijdkwfvw4qlbbmqmlmzwlq3g2676dcl5vwyazv1b5"))))
1387 (build-system cargo-build-system)
1390 (("rust-libc" ,rust-libc)
1391 ("rust-winapi" ,rust-winapi))
1392 #:cargo-development-inputs
1393 (("rust-tempdir" ,rust-tempdir))))
1394 (home-page "https://github.com/danburkert/memmap-rs")
1395 (synopsis "Rust library for cross-platform memory mapped IO")
1397 "This package provides a cross-platform Rust API for memory-mapped
1399 (license (list license:asl2.0
1402 (define-public rust-memmap-0.6
1404 (inherit rust-memmap)
1405 (name "rust-memmap")
1410 (uri (crate-uri "memmap" version))
1411 (file-name (string-append name "-" version ".tar.gz"))
1414 "1zy6s0ni0lx9rjzq3gq2zz9r8zgjmbp02332g3gsj4fyhv4s5zz2"))))
1417 (("rust-libc" ,rust-libc)
1418 ("rust-winapi" ,rust-winapi))
1419 #:cargo-development-inputs
1420 (("rust-tempdir" ,rust-tempdir))))))
1422 (define-public rust-mime
1429 (uri (crate-uri "mime" version))
1430 (file-name (string-append name "-" version ".tar.gz"))
1433 "09clbyvdkwflp8anwjhqdib0sw8191gphcchdp80nc8ayhhwl9ry"))))
1434 (build-system cargo-build-system)
1437 (("rust-unicase" ,rust-unicase))))
1438 (home-page "https://github.com/hyperium/mime")
1439 (synopsis "Strongly Typed Mimes")
1441 "Support MIME (HTTP Media Types) as strong types in Rust.")
1442 (license (list license:asl2.0
1445 (define-public rust-miniz-oxide
1447 (name "rust-miniz-oxide")
1452 (uri (crate-uri "miniz_oxide" version))
1453 (file-name (string-append name "-" version ".tar.gz"))
1456 "041s41l5w7z8pkp93pdzn8rngxr93q4wxp034pr0cvc7bgway23i"))))
1457 (build-system cargo-build-system)
1460 (("rust-adler32" ,rust-adler32))
1462 (modify-phases %standard-phases
1463 (add-after 'unpack 'fix-tests
1465 (substitute* "tests/test.rs"
1466 (("../miniz/miniz.c") "Cargo.toml"))
1468 (home-page "https://github.com/Frommi/miniz_oxide/tree/master/miniz_oxide")
1469 (synopsis "Pure rust replacement for the miniz DEFLATE/zlib encoder/decoder")
1471 "A pure rust replacement for the miniz DEFLATE/zlib encoder/decoder. Using
1472 @code{flate2} with the @code{rust_backend} feature provides an easy to use
1473 streaming API for miniz_oxide.")
1474 (license license:expat)))
1476 (define-public rust-miniz-sys
1478 (name "rust-miniz-sys")
1483 (uri (crate-uri "miniz-sys" version))
1484 (file-name (string-append name "-" version ".tar.gz"))
1487 "00l2r4anm8g35x0js2zfdnwfbrih9m43vphdpb77c5ga3kjkm7hy"))))
1488 (build-system cargo-build-system)
1491 (("rust-cc" ,rust-cc)
1492 ("rust-libc" ,rust-libc))))
1493 (home-page "https://github.com/alexcrichton/flate2-rs")
1494 (synopsis "Bindings to the miniz.c library")
1496 "This package provides bindings to the @code{miniz.c} library.")
1497 (license (list license:asl2.0
1500 (define-public rust-modifier
1502 (name "rust-modifier")
1507 (uri (crate-uri "modifier" version))
1508 (file-name (string-append name "-" version ".tar.gz"))
1511 "0n3fmgli1nsskl0whrfzm1gk0rmwwl6pw1q4nb9sqqmn5h8wkxa1"))))
1512 (build-system cargo-build-system)
1513 (home-page "https://github.com/reem/rust-modifier")
1515 "Chaining APIs for both self -> Self and &mut self methods.")
1517 "Chaining APIs for both self -> Self and &mut self methods.")
1518 (license license:expat)))
1520 (define-public rust-net2
1527 (uri (crate-uri "net2" version))
1528 (file-name (string-append name "-" version ".tar.gz"))
1531 "126g3fgfxp06zimc1l9iyxnn9cif1hjsg7sd81nlls5nnyghsma2"))))
1532 (build-system cargo-build-system)
1535 (("rust-cfg-if" ,rust-cfg-if)
1536 ("rust-libc" ,rust-libc)
1537 ("rust-winapi" ,rust-winapi))))
1538 (home-page "https://github.com/rust-lang-nursery/net2-rs")
1539 (synopsis "Extensions to the standard library's networking types")
1541 "This library contains extensions to the standard library's networking
1542 types as proposed in RFC 1158.")
1543 (license (list license:asl2.0
1546 (define-public rust-netlib-src
1548 (name "rust-netlib-src")
1553 (uri (crate-uri "netlib-src" version))
1554 (file-name (string-append name "-" version ".tar.gz"))
1557 "112hwfw1zzdj10h3j213xxqjrq38iygb3nb3ijay65ycmrg819s4"))))
1558 (build-system cargo-build-system)
1560 `(#:cargo-development-inputs
1561 (("rust-cmake" ,rust-cmake)
1562 ("rust-libc" ,rust-libc))
1564 (modify-phases %standard-phases
1565 (add-after 'unpack 'use-system-lapack
1567 (delete-file-recursively "source")
1568 (substitute* "Cargo.toml"
1570 "default = [\"system\"]\n"))
1573 `(("gfortran:lib" ,gfortran "lib")
1574 ("lapack" ,lapack)))
1575 (home-page "https://github.com/blas-lapack-rs/netlib-src")
1576 (synopsis "Source of BLAS and LAPACK via Netlib")
1578 "The package provides a source of BLAS and LAPACK via Netlib.")
1579 (license (list license:asl2.0
1582 (define-public rust-nodrop
1584 (name "rust-nodrop")
1589 (uri (crate-uri "nodrop" version))
1590 (file-name (string-append name "-" version ".tar.gz"))
1593 "0if9ifn6rvar5jirx4b3qh4sl5kjkmcifycvzhxa9j3crkfng5ig"))))
1594 (build-system cargo-build-system)
1597 (("rust-nodrop-union" ,rust-nodrop-union))))
1598 (home-page "https://github.com/bluss/arrayvec")
1599 (synopsis "Wrapper type to inhibit drop (destructor)")
1600 (description "This package provides a wrapper type to inhibit drop
1601 (destructor). Use @code{std::mem::ManuallyDrop} instead!")
1602 (license (list license:asl2.0
1605 ;; This package requires features which are unavailable
1606 ;; on the stable releases of Rust.
1607 (define-public rust-nodrop-union
1609 (name "rust-nodrop-union")
1614 (uri (crate-uri "nodrop-union" version))
1615 (file-name (string-append name "-" version ".tar.gz"))
1618 "0jsnkdn9l8jlmb9h4wssi76sxnyxwnyi00p6y1p2gdq7c1gdw2b7"))))
1619 (build-system cargo-build-system)
1620 (home-page "https://github.com/bluss/arrayvec")
1621 (synopsis "Wrapper type to inhibit drop (destructor)")
1622 (description "This package provides a wrapper type to inhibit drop
1623 (destructor). Implementation crate for nodrop, the untagged unions
1624 implementation (which is unstable / requires nightly).")
1625 (properties '((hidden? . #t)))
1626 (license (list license:asl2.0
1629 (define-public rust-num-cpus
1631 (name "rust-num-cpus")
1636 (uri (crate-uri "num_cpus" version))
1637 (file-name (string-append name "-" version ".tar.gz"))
1640 "0wrj3zvj6h3q26sqj9zxpd59frjb54n7jhjwf307clq31ic47vxw"))))
1641 (build-system cargo-build-system)
1644 (("rust-libc" ,rust-libc))
1645 #:cargo-development-inputs
1646 (("rust-doc-comment" ,rust-doc-comment))))
1647 (home-page "https://github.com/seanmonstar/num_cpus")
1648 (synopsis "Get the number of CPUs on a machine")
1650 "Get the number of CPUs on a machine.")
1651 (license (list license:asl2.0
1654 (define-public rust-num-integer
1656 (name "rust-num-integer")
1661 (uri (crate-uri "num-integer" version))
1663 (string-append name "-" version ".tar.gz"))
1666 "02dwjjpfbi16c71fq689s4sw3ih52cvfzr5z5gs6qpr5z0g58pmq"))))
1667 (build-system cargo-build-system)
1670 (("rust-autocfg" ,rust-autocfg)
1671 ("rust-num-traits" ,rust-num-traits))))
1672 (home-page "https://github.com/rust-num/num-integer")
1673 (synopsis "Integer traits and functions")
1674 (description "Integer traits and functions.")
1676 (license (list license:asl2.0
1679 (define-public rust-num-iter
1681 (name "rust-num-iter")
1686 (uri (crate-uri "num-iter" version))
1687 (file-name (string-append name "-" version ".tar.gz"))
1690 "0bhk2qbr3261r6zvfc58lz4spfqjhvdripxgz5mks5rd85r55gbn"))))
1691 (build-system cargo-build-system)
1694 (("rust-num-integer" ,rust-num-integer)
1695 ("rust-num-traits" ,rust-num-traits))
1696 #:cargo-development-inputs
1697 (("rust-autocfg" ,rust-autocfg))))
1698 (home-page "https://github.com/rust-num/num-iter")
1699 (synopsis "External iterators for generic mathematics")
1701 "This crate provides external iterators for generic mathematics.")
1702 (license (list license:asl2.0
1705 (define-public rust-num-traits
1707 (name "rust-num-traits")
1712 (uri (crate-uri "num-traits" version))
1714 (string-append name "-" version ".tar.gz"))
1717 "0clvrm34rrqc8p6gq5ps5fcgws3kgq5knh7nlqxf2ayarwks9abb"))))
1718 (build-system cargo-build-system)
1721 (("rust-autocfg" ,rust-autocfg))))
1722 (home-page "https://github.com/rust-num/num-traits")
1723 (synopsis "Numeric traits for generic mathematics")
1724 (description "Numeric traits for generic mathematics.")
1726 (license (list license:asl2.0
1729 (define-public rust-openssl-probe
1731 (name "rust-openssl-probe")
1736 (uri (crate-uri "openssl-probe" version))
1737 (file-name (string-append name "-" version ".tar.gz"))
1740 "1pijrdifgsdwd45b08c2g0dsmnhz7c3kmagb70839ngrd7d29bvp"))))
1741 (build-system cargo-build-system)
1742 (home-page "https://github.com/alexcrichton/openssl-probe")
1743 (synopsis "Find SSL certificate locations")
1745 "This package provides a tool to find SSL certificate locations on the
1746 system for OpenSSL.")
1747 (license (list license:asl2.0
1750 (define-public rust-owning-ref
1752 (name "rust-owning-ref")
1757 (uri (crate-uri "owning_ref" version))
1758 (file-name (string-append name "-" version ".tar.gz"))
1761 "04zgwy77lin8qz398s6g44467pd6kjhbrlqifkia5rkr47mbi929"))))
1762 (build-system cargo-build-system)
1765 (("rust-stable-deref-trait" ,rust-stable-deref-trait))))
1766 (home-page "https://github.com/Kimundi/owning-ref-rs")
1767 (synopsis "Create references that carry their owner with them")
1769 "This package provides a library for creating references that carry their
1770 owner with them. This can sometimes be useful because Rust borrowing rules
1771 normally prevent moving a type that has been borrowed from.")
1772 (license license:expat)))
1774 (define-public rust-peeking-take-while
1776 (name "rust-peeking-take-while")
1781 (uri (crate-uri "peeking_take_while" version))
1782 (file-name (string-append name "-" version ".tar.gz"))
1785 "16bhqr6rdyrp12zv381cxaaqqd0pwysvm1q8h2ygihvypvfprc8r"))))
1786 (build-system cargo-build-system)
1787 (home-page "https://github.com/fitzgen/peeking_take_while")
1788 (synopsis "Provides the peeking_take_while iterator adaptor method")
1790 "Like @code{Iterator::take_while}, but calls the predicate on a peeked
1791 value. This allows you to use @code{Iterator::by_ref} and
1792 @code{Iterator::take_while} together, and still get the first value for which
1793 the @code{take_while} predicate returned false after dropping the @code{by_ref}.")
1794 (license (list license:asl2.0
1797 (define-public rust-percent-encoding
1799 (name "rust-percent-encoding")
1804 (uri (crate-uri "percent-encoding" version))
1805 (file-name (string-append name "-" version ".tar.gz"))
1808 "0m6rkp3iy11la04p6z3492rns6n693pvmx585dvfmzzlzak2hkxs"))))
1809 (build-system cargo-build-system)
1810 (home-page "https://github.com/servo/rust-url/")
1811 (synopsis "Percent encoding and decoding")
1812 (description "This crate provides percent encoding and decoding.")
1813 (license (list license:asl2.0
1816 (define-public rust-permutohedron
1818 (name "rust-permutohedron")
1823 (uri (crate-uri "permutohedron" version))
1824 (file-name (string-append name "-" version ".tar.gz"))
1827 "0b1pzh48j86v46wxngch6k1kx9cdw3jr3lwa86gd6jd4bmxzz1xn"))))
1828 (build-system cargo-build-system)
1829 (home-page "https://github.com/bluss/permutohedron")
1830 (synopsis "Generate permutations of sequences")
1832 "Generate permutations of sequences. Either lexicographical order
1833 permutations, or a minimal swaps permutation sequence implemented using Heap's
1835 (license (list license:asl2.0
1838 (define-public rust-pico-sys
1840 (name "rust-pico-sys")
1845 (uri (crate-uri "pico-sys" version))
1846 (file-name (string-append name "-" version ".tar.gz"))
1849 "1q5pg0ms6szz6b5h26h4k40zb76zbwwjgyigac4wly9qngdj4yl5"))))
1850 (build-system cargo-build-system)
1853 (("rust-gcc" ,rust-gcc)
1854 ("rust-libc" ,rust-libc))))
1855 (home-page "https://github.com/reem/rust-pico-sys.git")
1856 (synopsis "Bindings to the PicoHTTPParser")
1858 "This package provides bindings to the PicoHTTPParser.")
1859 (license license:expat)))
1861 (define-public rust-pin-utils
1863 (name "rust-pin-utils")
1864 (version "0.1.0-alpha.4")
1868 (uri (crate-uri "pin-utils" version))
1869 (file-name (string-append name "-" version ".tar.gz"))
1872 "11xmyx00n4m37d546by2rxb8ryxs12v55cc172i3yak1rqccd52q"))))
1873 (build-system cargo-build-system)
1874 (home-page "https://github.com/rust-lang-nursery/pin-utils")
1875 (synopsis "Utilities for pinning")
1876 (description "This crate provides utilities for pinning values on the stack.")
1877 (license (list license:asl2.0
1880 (define-public rust-pkg-config
1882 (name "rust-pkg-config")
1887 (uri (crate-uri "pkg-config" version))
1888 (file-name (string-append name "-" version ".tar.gz"))
1891 "135ia995lqzr0gxpk85h0bjxf82kj6hbxdx924sh9jdln6r8wvk7"))))
1892 (build-system cargo-build-system)
1894 `(#:cargo-development-inputs
1895 (("rust-lazy-static" ,rust-lazy-static))))
1897 `(("pkg-config" ,pkg-config)))
1898 (home-page "https://github.com/alexcrichton/pkg-config-rs")
1899 (synopsis "Library to run the pkg-config system tool")
1901 "A library to run the pkg-config system tool at build time in order to be
1902 used in Cargo build scripts.")
1903 (license (list license:asl2.0
1906 (define-public rust-plain
1913 (uri (crate-uri "plain" version))
1914 (file-name (string-append name "-" version ".tar.gz"))
1917 "19n1xbxb4wa7w891268bzf6cbwq4qvdb86bik1z129qb0xnnnndl"))))
1918 (build-system cargo-build-system)
1919 (home-page "https://github.com/randomites/plain")
1920 (synopsis "Rust library that allows reinterpreting data safely")
1921 (description "This package provides a small Rust library that allows users
1922 to reinterpret data of certain types safely.")
1923 (license (list license:asl2.0
1926 (define-public rust-plugin
1928 (name "rust-plugin")
1933 (uri (crate-uri "plugin" version))
1934 (file-name (string-append name "-" version ".tar.gz"))
1937 "1q7nghkpvxxr168y2jnzh3w7qc9vfrby9n7ygy3xpj0bj71hsshs"))))
1938 (build-system cargo-build-system)
1941 (("rust-typemap" ,rust-typemap))
1942 #:cargo-development-inputs
1943 (("rust-void" ,rust-void))))
1944 (home-page "https://github.com/reem/rust-plugin")
1945 (synopsis "Lazily evaluated, order-independent plugins for extensible types")
1947 "Lazily evaluated, order-independent plugins for extensible types.")
1948 (license license:expat)))
1950 (define-public rust-pocket-resources
1952 (name "rust-pocket-resources")
1957 (uri (crate-uri "pocket-resources" version))
1958 (file-name (string-append name "-" version ".tar.gz"))
1961 "1n2i5vmi8fdbw89wm5nz1ws1z9f1qax911p6ksg4scmdg23z6df1"))))
1962 (build-system cargo-build-system)
1963 (home-page "https://github.com/tomaka/pocket-resources")
1964 (synopsis "Include resources in your applications")
1965 (description "This crate allows you to include resources in your
1967 (license license:expat)))
1969 (define-public rust-ppv-lite86
1971 (name "rust-ppv-lite86")
1976 (uri (crate-uri "ppv-lite86" version))
1977 (file-name (string-append name "-" version ".tar.gz"))
1980 "06snnv338w341nicfqba2jgln5dsla72ndkgrw7h1dfdb3vgkjz3"))))
1981 (build-system cargo-build-system)
1982 (home-page "https://github.com/cryptocorrosion/cryptocorrosion")
1983 (synopsis "Implementation of the crypto-simd API for x86")
1984 (description "This crate provides an implementation of the crypto-simd API
1986 (license (list license:asl2.0
1989 (define-public rust-proc-macro2
1991 (name "rust-proc-macro2")
1996 (uri (crate-uri "proc-macro2" version))
1998 (string-append name "-" version ".tar.gz"))
2001 "0nd71fl24sys066jrha6j7i34nfkjv44yzw8yww9742wmc8j0gfg"))))
2002 (build-system cargo-build-system)
2004 `(#:cargo-inputs (("rust-unicode-xid" ,rust-unicode-xid-0.1))
2005 #:cargo-development-inputs (("rust-quote" ,rust-quote))))
2006 (home-page "https://github.com/alexcrichton/proc-macro2")
2007 (synopsis "Stable implementation of the upcoming new `proc_macro` API")
2008 (description "This package provides a stable implementation of the upcoming new
2009 `proc_macro` API. Comes with an option, off by default, to also reimplement itself
2010 in terms of the upstream unstable API.")
2012 (license (list license:asl2.0 license:expat))))
2014 (define-public rust-quick-error
2016 (name "rust-quick-error")
2021 (uri (crate-uri "quick-error" version))
2022 (file-name (string-append name "-" version ".tar.gz"))
2025 "1w6kgwwv7p7zr0yyg5rb315lkk24bimywklwx7fsvsbwi10bjx4j"))))
2026 (build-system cargo-build-system)
2027 (home-page "http://github.com/tailhook/quick-error")
2028 (synopsis "Macro which makes error types pleasant to write")
2029 (description "This crate provides a macro which makes error types pleasant
2031 (license (list license:asl2.0
2034 (define-public rust-quote
2041 (uri (crate-uri "quote" version))
2043 (string-append name "-" version ".tar.gz"))
2046 "1nw0klza45hf127kfyrpxsxd5jw2l6h21qxalil3hkr7bnf7kx7s"))))
2047 (build-system cargo-build-system)
2049 `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2))))
2050 (home-page "https://github.com/dtolnay/quote")
2051 (synopsis "Quasi-quoting macro quote!(...)")
2052 (description "Quasi-quoting macro quote!(...)")
2054 (license (list license:asl2.0 license:expat))))
2056 (define-public rust-rand
2063 (uri (crate-uri "rand" version))
2064 (file-name (string-append name "-" version ".tar.gz"))
2067 "1gfgnqfj2pyh27dcb720jpawskllwnbvxh816ddyykv269xz8ml3"))))
2068 (build-system cargo-build-system)
2071 (("rust-fuchsia-zircon" ,rust-fuchsia-zircon)
2072 ("rust-libc" ,rust-libc)
2073 ("rust-winapi" ,rust-winapi))))
2074 (home-page "https://crates.io/crates/rand")
2075 (synopsis "Random number generators and other randomness functionality")
2077 "Rand provides utilities to generate random numbers, to convert them to
2078 useful types and distributions, and some randomness-related algorithms.")
2079 (license (list license:asl2.0
2082 (define-public rust-rand-0.3
2090 (uri (crate-uri "rand" version))
2091 (file-name (string-append name "-" version ".tar.gz"))
2094 "0v679h38pjjqj5h4md7v2slsvj6686qgcn7p9fbw3h43iwnk1b34"))))
2097 (("rust-libc" ,rust-libc)
2098 ("rust-rand" ,rust-rand))))))
2100 (define-public rust-rawpointer
2102 (name "rust-rawpointer")
2107 (uri (crate-uri "rawpointer" version))
2108 (file-name (string-append name "-" version ".tar.gz"))
2111 "06ghpm9y7gacks78s3maakha07kbnwrxif5q37r2l7z1sali3b7b"))))
2112 (build-system cargo-build-system)
2113 (home-page "https://github.com/bluss/rawpointer/")
2114 (synopsis "Extra methods for raw pointers")
2115 (description "Extra methods for raw pointers. For example
2116 @code{.post_inc()} and @code{.pre_dec()} (c.f. @code{ptr++} and @code{--ptr})
2117 and @code{ptrdistance}.")
2118 (license (list license:asl2.0
2121 ;; This package requires features which are unavailable
2122 ;; on the stable releases of Rust.
2123 (define-public rust-redox-syscall ; guix upstreamable
2125 (name "rust-redox-syscall")
2130 (uri (crate-uri "redox_syscall" version))
2131 (file-name (string-append name "-" version ".tar.gz"))
2134 "110y7dyfm2vci4x5vk7gr0q551dvp31npl99fnsx2fb17wzwcf94"))))
2135 (build-system cargo-build-system)
2136 (home-page "https://gitlab.redox-os.org/redox-os/syscall")
2137 (synopsis "Rust library to access raw Redox system calls")
2138 (description "This package provides a Rust library to access raw Redox
2140 (properties '((hidden? . #t)))
2141 (license license:expat)))
2143 (define-public rust-regex-syntax
2145 (name "rust-regex-syntax")
2150 (uri (crate-uri "regex-syntax" version))
2151 (file-name (string-append name "-" version ".tar.gz"))
2154 "0p47lf38yj2g2fnmvnraccqlxwk35zr76hlnqi8yva932nzqam6d"))))
2155 (build-system cargo-build-system)
2158 (("rust-ucd-util" ,rust-ucd-util))))
2159 (home-page "https://github.com/rust-lang/regex")
2160 (synopsis "Regular expression parser")
2162 "This package provides a regular expression parser.")
2163 (license (list license:asl2.0
2166 (define-public rust-remove-dir-all
2168 (name "rust-remove-dir-all")
2173 (uri (crate-uri "remove_dir_all" version))
2174 (file-name (string-append name "-" version ".tar.gz"))
2177 "0bkrlyg26mgizpiy1yb2hhpgscxcag8r5fnckqsvk25608vzm0sa"))))
2178 (build-system cargo-build-system)
2181 (("rust-winapi" ,rust-winapi))
2182 #:cargo-development-inputs
2183 (("rust-doc-comment" ,rust-doc-comment))
2185 (modify-phases %standard-phases
2186 (add-after 'unpack 'fix-source
2187 ;; The test phase expects there to be a README.md in the root directory.
2189 (invoke "touch" "README.md"))))))
2190 (home-page "https://github.com/XAMPPRocky/remove_dir_all.git")
2191 (synopsis "Implementation of remove_dir_all for Windows")
2193 "This package provides a safe, reliable implementation of
2194 @code{remove_dir_all} for Windows")
2195 (license (list license:asl2.0
2198 (define-public rust-resolv-conf
2200 (name "rust-resolv-conf")
2205 (uri (crate-uri "resolv-conf" version))
2206 (file-name (string-append name "-" version ".tar.gz"))
2209 "1jvdsmksdf6yiipm3aqahyv8n1cjd7wqc8sa0p0gzsax3fmb8qxj"))))
2210 (build-system cargo-build-system)
2213 (("rust-quick-error" ,rust-quick-error)
2214 ("rust-hostname" ,rust-hostname))
2215 #:cargo-test-flags '("--release" "--lib" "--examples"))) ; doc tests fail
2216 (home-page "https://github.com/tailhook/resolv-conf")
2217 (synopsis "/etc/resolv.conf parser")
2219 "An /etc/resolv.conf parser crate for Rust.")
2220 (license (list license:asl2.0
2223 (define-public rust-rustc-demangle
2225 (name "rust-rustc-demangle")
2230 (uri (crate-uri "rustc-demangle" version))
2231 (file-name (string-append name "-" version ".tar.gz"))
2234 "10qp42sl1wrdbgbbh8rnay2grm976z7hqgz32c4y09l1c071qsac"))))
2235 (build-system cargo-build-system)
2238 (("rust-compiler-builtins"
2239 ,rust-compiler-builtins)
2240 ("rust-rustc-std-workspace-core"
2241 ,rust-rustc-std-workspace-core))))
2242 (home-page "https://github.com/alexcrichton/rustc-demangle")
2243 (synopsis "Rust compiler symbol demangling")
2245 "This package demanges the symbols from the Rust compiler.")
2246 (license (list license:asl2.0
2249 (define-public rust-rustc-serialize
2251 (name "rust-rustc-serialize")
2256 (uri (crate-uri "rustc-serialize" version))
2257 (file-name (string-append name "-" version ".tar.gz"))
2260 "1nkg3vasg7nk80ffkazizgiyv3hb1l9g3d8h17cajbkx538jiwfw"))))
2261 (build-system cargo-build-system)
2263 `(#:cargo-development-inputs
2264 (("rust-rand" ,rust-rand-0.3))))
2265 (home-page "https://github.com/rust-lang-deprecated/rustc-serialize")
2266 (synopsis "Generic serialization/deserialization support")
2268 "This package provides generic serialization/deserialization support
2269 corresponding to the @code{derive(RustcEncodable, RustcDecodable)} mode in the
2270 compiler. Also includes support for hex, base64, and json encoding and
2272 (license (list license:asl2.0
2275 (define-public rust-rustc-std-workspace-core
2277 (name "rust-rustc-std-workspace-core")
2282 (uri (crate-uri "rustc-std-workspace-core" version))
2283 (file-name (string-append name "-" version ".tar.gz"))
2286 "1309xhwyai9xpz128xrfjqkmnkvgjwddznmj7brbd8i8f58zamhr"))))
2287 (build-system cargo-build-system)
2288 (home-page "https://crates.io/crates/rustc-std-workspace-core")
2289 (synopsis "Explicitly empty crate for rust-lang/rust integration")
2290 (description "This crate provides an explicitly empty crate for
2291 rust-lang/rust integration.")
2292 (license (list license:asl2.0
2295 (define-public rust-safemem
2297 (name "rust-safemem")
2302 (uri (crate-uri "safemem" version))
2303 (file-name (string-append name "-" version ".tar.gz"))
2306 "1l1ljkm4lpyryrv2ndaxi1f7z1f3v9bwy1rzl9f9mbhx04iq9c6j"))))
2307 (build-system cargo-build-system)
2308 (home-page "https://github.com/abonander/safemem")
2309 (synopsis "Safe wrappers for memory-accessing functions")
2311 "Safe wrappers for memory-accessing functions, like @code{std::ptr::copy()}.")
2312 (license (list license:asl2.0
2315 (define-public rust-same-file
2317 (name "rust-same-file")
2322 (uri (crate-uri "same-file" version))
2323 (file-name (string-append name "-" version ".tar.gz"))
2326 "08a4zy10pjindf2rah320s6shgswk13mqw7s61m8i1y1xpf8spjq"))))
2327 (build-system cargo-build-system)
2330 (("rust-winapi-util" ,rust-winapi-util))))
2331 (home-page "https://github.com/BurntSushi/same-file")
2332 (synopsis "Determine whether two file paths point to the same file")
2334 "This package provides a simple crate for determining whether two file
2335 paths point to the same file.")
2336 (license (list license:unlicense
2339 (define-public rust-schannel
2341 (name "rust-schannel")
2346 (uri (crate-uri "schannel" version))
2347 (file-name (string-append name "-" version ".tar.gz"))
2350 "0f9k4pm8yc3z0n1n8hazvnrvg52f0sfxjc91bhf3r76rb3rapxpj"))))
2351 (build-system cargo-build-system)
2354 (("rust-lazy-static" ,rust-lazy-static)
2355 ("rust-winapi" ,rust-winapi))))
2356 (home-page "https://github.com/steffengy/schannel-rs")
2357 (synopsis "Rust bindings to the Windows SChannel APIs")
2359 "Rust bindings to the Windows SChannel APIs providing TLS client and
2360 server functionality.")
2361 (license license:expat)))
2363 (define-public rust-scoped-threadpool
2365 (name "rust-scoped-threadpool")
2370 (uri (crate-uri "scoped_threadpool" version))
2371 (file-name (string-append name "-" version ".tar.gz"))
2374 "1a26d3lk40s9mrf4imhbik7caahmw2jryhhb6vqv6fplbbgzal8x"))))
2375 (build-system cargo-build-system)
2377 `(#:cargo-development-inputs
2378 (("rust-lazy-static" ,rust-lazy-static))))
2379 (home-page "https://github.com/Kimundi/scoped-threadpool-rs")
2380 (synopsis "library for scoped and cached threadpools")
2382 "This crate provides a stable, safe and scoped threadpool. It can be used
2383 to execute a number of short-lived jobs in parallel without the need to respawn
2384 the underlying threads. Jobs are runnable by borrowing the pool for a given
2385 scope, during which an arbitrary number of them can be executed. These jobs can
2386 access data of any lifetime outside of the pools scope, which allows working on
2387 non-'static references in parallel.")
2388 (license (list license:asl2.0
2391 (define-public rust-scoped-tls
2393 (name "rust-scoped-tls")
2398 (uri (crate-uri "scoped-tls" version))
2399 (file-name (string-append name "-" version ".tar.gz"))
2402 "1hj8lifzvivdb1z02lfnzkshpvk85nkgzxsy2hc0zky9wf894spa"))))
2403 (build-system cargo-build-system)
2404 (home-page "https://github.com/alexcrichton/scoped-tls")
2405 (synopsis "Rust library providing the old standard library's scoped_thread_local")
2406 (description "This crate provides a library implementation of the standard
2407 library's old @code{scoped_thread_local!} macro for providing scoped access to
2408 @dfn{thread local storage} (TLS) so any type can be stored into TLS.")
2409 (license (list license:asl2.0
2412 (define-public rust-scoped-tls-0.1
2414 (inherit rust-scoped-tls)
2415 (name "rust-scoped-tls")
2420 (uri (crate-uri "scoped-tls" version))
2421 (file-name (string-append name "-" version ".tar.gz"))
2424 "0a2bn9d2mb07c6l16sadijy4p540g498zddfxyiq4rsqpwrglbrk"))))))
2426 (define-public rust-scopeguard
2428 (name "rust-scopeguard")
2433 (uri (crate-uri "scopeguard" version))
2434 (file-name (string-append name "-" version ".tar.gz"))
2437 "03aay84r1f6w87ckbpj6cc4rnsxkxcfs13n5ynxjia0qkgjiabml"))))
2438 (build-system cargo-build-system)
2439 (home-page "https://github.com/bluss/scopeguard")
2440 (synopsis "Scope guard which will run a closure even out of scope")
2441 (description "This package provides a RAII scope guard that will run a
2442 given closure when it goes out of scope, even if the code between panics
2443 (assuming unwinding panic). Defines the macros @code{defer!},
2444 @code{defer_on_unwind!}, @code{defer_on_success!} as shorthands for guards
2445 with one of the implemented strategies.")
2446 (license (list license:asl2.0
2449 (define-public rust-scopeguard-0.3
2451 (inherit rust-scopeguard)
2452 (name "rust-scopeguard")
2457 (uri (crate-uri "scopeguard" version))
2459 (string-append name "-" version ".tar.gz"))
2462 "09sy9wbqp409pkwmqni40qmwa99ldqpl48pp95m1xw8sc19qy9cl"))))))
2464 (define-public rust-security-framework-sys
2466 (name "rust-security-framework-sys")
2471 (uri (crate-uri "security-framework-sys" version))
2472 (file-name (string-append name "-" version ".tar.gz"))
2475 "0mlsakq9kmqyc0fg2hcbgm6rjk55mb0rhjw2wid3hqdzkjcghdln"))))
2476 (build-system cargo-build-system)
2479 (("rust-core-foundation-sys"
2480 ,rust-core-foundation-sys))))
2481 (home-page "https://lib.rs/crates/security-framework-sys")
2482 (synopsis "Apple `Security.framework` low-level FFI bindings")
2484 "Apple `Security.framework` low-level FFI bindings.")
2485 (license (list license:asl2.0
2488 (define-public rust-semver-parser
2490 (name "rust-semver-parser")
2495 (uri (crate-uri "semver-parser" version))
2496 (file-name (string-append name "-" version ".tar.gz"))
2499 "1ahqhvgpzhcsd28id7xnrjv4419i9yyalhm7d7zi430qx0hi2vml"))))
2500 (build-system cargo-build-system)
2501 (home-page "https://github.com/steveklabnik/semver-parser")
2502 (synopsis "Parsing of the semver spec")
2503 (description "This package provides for parsing of the semver spec.")
2504 (license (list license:asl2.0
2507 (define-public rust-shlex
2514 (uri (crate-uri "shlex" version))
2515 (file-name (string-append name "-" version ".tar.gz"))
2518 "1lmv6san7g8dv6jdfp14m7bdczq9ss7j7bgsfqyqjc3jnjfippvz"))))
2519 (build-system cargo-build-system)
2520 (home-page "https://github.com/comex/rust-shlex")
2521 (synopsis "Split a string into shell words, like Python's shlex")
2522 (description "This crate provides a method to split a string into shell
2523 words, like Python's shlex.")
2524 (license (list license:asl2.0
2527 (define-public rust-slab
2534 (uri (crate-uri "slab" version))
2535 (file-name (string-append name "-" version ".tar.gz"))
2538 "1y59xsa27jk84sxzswjk60xcjf8b4fm5960jwpznrrcmasyva4f1"))))
2539 (build-system cargo-build-system)
2540 (home-page "https://github.com/carllerche/slab")
2541 (synopsis "Pre-allocated storage for a uniform data type")
2542 (description "This create provides a pre-allocated storage for a uniform
2544 (license license:expat)))
2546 (define-public rust-socket2
2548 (name "rust-socket2")
2553 (uri (crate-uri "socket2" version))
2554 (file-name (string-append name "-" version ".tar.gz"))
2557 "11bdcz04i106g4q7swkll0qxrb4287srqd2k3aq2q6i22zjlvdz8"))))
2558 (build-system cargo-build-system)
2561 (("rust-cfg-if" ,rust-cfg-if)
2562 ("rust-libc" ,rust-libc)
2563 ("rust-redox-syscall" ,rust-redox-syscall)
2564 ("rust-winapi" ,rust-winapi))
2565 #:cargo-development-inputs
2566 (("rust-tempdir" ,rust-tempdir))
2567 #:tests? #f)) ; Tests expect network connectivity.
2568 (home-page "https://github.com/alexcrichton/socket2-rs")
2569 (synopsis "Networking sockets in Rust")
2571 "This package provides utilities for handling networking sockets with a
2572 maximal amount of configuration possible intended.")
2573 (license (list license:asl2.0
2576 (define-public rust-spin
2583 (uri (crate-uri "spin" version))
2584 (file-name (string-append name "-" version ".tar.gz"))
2587 "0m9clchsj0rf13bggsgvbv9haiy0f6rhvnvkpvkk8720a5pkydj4"))))
2588 (build-system cargo-build-system)
2589 (home-page "https://github.com/mvdnes/spin-rs.git")
2590 (synopsis "Synchronization primitives based on spinning")
2591 (description "This crate provides synchronization primitives based on
2592 spinning. They may contain data, are usable without @code{std},and static
2593 initializers are available.")
2594 (license license:expat)))
2596 (define-public rust-stable-deref-trait
2598 (name "rust-stable-deref-trait")
2603 (uri (crate-uri "stable_deref_trait" version))
2604 (file-name (string-append name "-" version ".tar.gz"))
2607 "1j2lkgakksmz4vc5hfawcch2ipiskrhjs1sih0f3br7s7rys58fv"))))
2608 (build-system cargo-build-system)
2609 (home-page "https://github.com/storyyeller/stable_deref_trait0")
2610 (synopsis "Defines an unsafe marker trait, StableDeref")
2612 "This crate defines an unsafe marker trait, StableDeref, for container
2613 types which deref to a fixed address which is valid even when the containing
2614 type is moved. For example, Box, Vec, Rc, Arc and String implement this trait.
2615 Additionally, it defines CloneStableDeref for types like Rc where clones deref
2616 to the same address.")
2617 (license (list license:asl2.0
2620 (define-public rust-stacker
2622 (name "rust-stacker")
2627 (uri (crate-uri "stacker" version))
2628 (file-name (string-append name "-" version ".tar.gz"))
2631 "0js0axz5nla1mkr2dm2vrv9rj964ng1lrv4l43sqlnfgawplhygv"))))
2632 (build-system cargo-build-system)
2635 (("rust-cfg-if" ,rust-cfg-if)
2636 ("rust-libc" ,rust-libc)
2637 ("rust-winapi" ,rust-winapi)
2638 ("rust-cc" ,rust-cc))))
2639 (home-page "https://github.com/rust-lang/stacker")
2640 (synopsis "Manual segmented stacks for Rust")
2642 "This package provides a stack growth library useful when implementing
2643 deeply recursive algorithms that may accidentally blow the stack.")
2644 (license (list license:asl2.0
2647 (define-public rust-stdweb-internal-runtime
2649 (name "rust-stdweb-internal-runtime")
2654 (uri (crate-uri "stdweb-internal-runtime" version))
2655 (file-name (string-append name "-" version ".tar.gz"))
2658 "1nhpyra7glbwcpakhpj5a3d7h7kx1ynif473nzshmk226m91f8ym"))))
2659 (build-system cargo-build-system)
2660 (home-page "https://github.com/koute/stdweb")
2661 (synopsis "Internal runtime for the @code{stdweb} crate")
2662 (description "This crate provides internal runtime for the @code{stdweb}
2664 (license (list license:asl2.0
2667 (define-public rust-stdweb-internal-test-macro
2669 (name "rust-stdweb-internal-test-macro")
2674 (uri (crate-uri "stdweb-internal-test-macro" version))
2675 (file-name (string-append name "-" version ".tar.gz"))
2678 "12rrm7p77xnm3xacgn3rgniiyyjb4gq7902wpbljsvbx045z69l2"))))
2679 (build-system cargo-build-system)
2682 (("rust-proc-macro2" ,rust-proc-macro2)
2683 ("rust-quote" ,rust-quote))))
2684 (home-page "https://github.com/koute/stdweb")
2685 (synopsis "Internal crate of the `stdweb` crate")
2687 "Internal crate of the @code{stdweb} crate.")
2688 (license (list license:asl2.0
2691 (define-public rust-streaming-stats
2693 (name "rust-streaming-stats")
2698 (uri (crate-uri "streaming-stats" version))
2699 (file-name (string-append name "-" version ".tar.gz"))
2702 "0l7xz4g6709s80zqpvlhrg0qhgz64r94cwhmfsg8xhabgznbp2px"))))
2703 (build-system cargo-build-system)
2706 (("rust-num-traits" ,rust-num-traits))))
2707 (home-page "https://github.com/BurntSushi/rust-stats")
2708 (synopsis "Compute basic statistics on streams")
2710 "Experimental crate for computing basic statistics on streams.")
2711 (license (list license:unlicense
2714 (define-public rust-strsim
2716 (name "rust-strsim")
2721 (uri (crate-uri "strsim" version))
2722 (file-name (string-append name "-" version ".tar.gz"))
2725 "1xphwhf86yxxmcpvm4mikj8ls41f6nf7gqyjm98b74mfk81h6b03"))))
2726 (build-system cargo-build-system)
2727 (home-page "https://github.com/dguo/strsim-rs")
2728 (synopsis "Rust implementations of string similarity metrics")
2729 (description "This crate includes implementations of string similarity
2730 metrics. It includes Hamming, Levenshtein, OSA, Damerau-Levenshtein, Jaro,
2732 (license license:expat)))
2734 (define-public rust-synstructure-test-traits
2736 (name "rust-synstructure-test-traits")
2741 (uri (crate-uri "synstructure_test_traits" version))
2742 (file-name (string-append name "-" version ".tar.gz"))
2745 "1b3fs2b9kc1gy9dilaxqjbdl4z0mlrbbxjzkprdx953rif1c3q66"))))
2746 (build-system cargo-build-system)
2747 (home-page "https://crates.io/crates/synstructure_test_traits")
2748 (synopsis "Helper test traits for synstructure doctests")
2750 "This package provides helper test traits for synstructure doctests.")
2751 (license license:expat)))
2753 (define-public rust-tar
2760 (uri (crate-uri "tar" version))
2761 (file-name (string-append name "-" version ".tar.gz"))
2764 "1lr6v3cpkfxd2lk5ll2jd8wr1xdskwj35smnh5sfb8xvzzxnn6dk"))))
2765 (build-system cargo-build-system)
2768 (("rust-filetime" ,rust-filetime)
2769 ("rust-libc" ,rust-libc)
2770 ("rust-redox-syscall" ,rust-redox-syscall)
2771 ("rust-xattr" ,rust-xattr))
2772 #:cargo-development-inputs
2773 (("rust-tempdir" ,rust-tempdir))
2774 #:tests? #f)) ; Test archives are not distributed in the crate tarball.
2775 (home-page "https://github.com/alexcrichton/tar-rs")
2776 (synopsis "Tar file reading/writing for Rust")
2778 "This package provides a Rust implementation of a TAR file reader and
2779 writer. This library does not currently handle compression, but it is abstract
2780 over all I/O readers and writers. Additionally, great lengths are taken to
2781 ensure that the entire contents are never required to be entirely resident in
2782 memory all at once.")
2783 (license (list license:asl2.0
2786 (define-public rust-tempdir
2788 (name "rust-tempdir")
2793 (uri (crate-uri "tempdir" version))
2794 (file-name (string-append name "-" version ".tar.gz"))
2797 "1n5n86zxpgd85y0mswrp5cfdisizq2rv3la906g6ipyc03xvbwhm"))))
2798 (build-system cargo-build-system)
2801 (("rust-rand" ,rust-rand)
2802 ("rust-remove-dir-all" ,rust-remove-dir-all))))
2804 "https://github.com/rust-lang/tempdir")
2805 (synopsis "Temporary directory management for Rust")
2807 "This package provides a library for managing a temporary directory and
2808 deleting all contents when it's dropped.")
2809 (license (list license:asl2.0
2812 (define-public rust-tempfile
2814 (name "rust-tempfile")
2819 (uri (crate-uri "tempfile" version))
2820 (file-name (string-append name "-" version ".tar.gz"))
2823 "0ny1cdbcsrmwjpy4k9366xm6p0jqkrmrvr0cln2djxspp1inyxs7"))))
2824 (build-system cargo-build-system)
2827 (("rust-libc" ,rust-libc)
2828 ("rust-rand" ,rust-rand)
2829 ("rust-redox-syscall" ,rust-redox-syscall)
2830 ("rust-remove-dir-all" ,rust-remove-dir-all)
2831 ("rust-winapi" ,rust-winapi))))
2832 (home-page "http://stebalien.com/projects/tempfile-rs")
2833 (synopsis "Library for managing temporary files and directories")
2835 "This package provides a library for managing temporary files and
2837 (license (list license:asl2.0
2840 (define-public rust-termcolor
2842 (name "rust-termcolor")
2847 (uri (crate-uri "termcolor" version))
2848 (file-name (string-append name "-" version ".tar.gz"))
2851 "0vjfsn1a8zvqhnrbygrz1id6yckwv1dncw3w4zj65qdx0f00kmln"))))
2852 (build-system cargo-build-system)
2855 (("rust-wincolor" ,rust-wincolor))))
2856 (home-page "https://github.com/BurntSushi/termcolor")
2857 (synopsis "Library for writing colored text to a terminal")
2858 (description "This package provides a simple cross platform library for
2859 writing colored text to a terminal.")
2860 (license (list license:unlicense
2863 (define-public rust-termios
2865 (name "rust-termios")
2870 (uri (crate-uri "termios" version))
2871 (file-name (string-append name "-" version ".tar.gz"))
2874 "09any1p4jp4bphvb5ikagnvwjc3xn2djchy96nkpa782xb2j1dkj"))))
2875 (build-system cargo-build-system)
2877 `(#:cargo-inputs (("rust-libc" ,rust-libc))))
2878 (home-page "https://github.com/dcuddeback/termios-rs")
2879 (synopsis "Safe bindings for the termios library")
2881 "The termios crate provides safe bindings for the Rust programming language
2882 to the terminal I/O interface implemented by Unix operating systems. The safe
2883 bindings are a small wrapper around the raw C functions, which converts integer
2884 return values to @code{std::io::Result} to indicate success or failure.")
2885 (license license:expat)))
2887 (define-public rust-thread-id
2889 (name "rust-thread-id")
2894 (uri (crate-uri "thread-id" version))
2895 (file-name (string-append name "-" version ".tar.gz"))
2898 "1h90v19fjz3x9b25ywh68z5yf2zsmm6h5zb4rl302ckbsp4z9yy7"))))
2899 (build-system cargo-build-system)
2902 (("rust-libc" ,rust-libc)
2903 ("rust-redox-syscall" ,rust-redox-syscall)
2904 ("rust-winapi" ,rust-winapi))))
2905 (home-page "https://github.com/ruuda/thread-id")
2906 (synopsis "Get a unique ID for the current thread in Rust")
2908 "For diagnostics and debugging it can often be useful to get an ID that is
2909 different for every thread.")
2910 (license (list license:asl2.0
2913 (define-public rust-thread-local
2915 (name "rust-thread-local")
2920 (uri (crate-uri "thread_local" version))
2921 (file-name (string-append name "-" version ".tar.gz"))
2924 "06rzik99p8c5js8238yhc8rk6np543ylb1dy9nrw5v80j0r3xdf6"))))
2925 (build-system cargo-build-system)
2928 (("rust-lazy-static" ,rust-lazy-static))))
2929 (home-page "https://github.com/Amanieu/thread_local-rs")
2930 (synopsis "Per-object thread-local storage")
2931 (description "Per-object thread-local storage")
2932 (license (list license:asl2.0
2935 (define-public rust-threadpool
2937 (name "rust-threadpool")
2942 (uri (crate-uri "threadpool" version))
2943 (file-name (string-append name "-" version ".tar.gz"))
2946 "0rd89n1q7vy47w4c32cnynibffv9kj3jy3dwr0536n9lbw5ckw72"))))
2947 (build-system cargo-build-system)
2950 (("rust-num-cpus" ,rust-num-cpus))))
2951 (home-page "https://github.com/rust-threadpool/rust-threadpool")
2952 (synopsis "Thread pool for running jobs on a fixed set of worker threads")
2954 "This package provides a thread pool for running a number of jobs on a
2955 fixed set of worker threads.")
2956 (license (list license:asl2.0
2959 (define-public rust-tokio-mock-task
2961 (name "rust-tokio-mock-task")
2966 (uri (crate-uri "tokio-mock-task" version))
2967 (file-name (string-append name "-" version ".tar.gz"))
2970 "1y7q83qfk9ljjfvs82b453pmz9x1v3d6kr4x55j8mal01s6790dw"))))
2971 (build-system cargo-build-system)
2973 `(#:cargo-inputs (("rust-futures" ,rust-futures))))
2974 (home-page "https://github.com/carllerche/tokio-mock-task")
2975 (synopsis "Mock a Tokio task")
2976 (description "Mock a Tokio task")
2977 (license license:expat)))
2979 (define-public rust-tracing-core
2981 (name "rust-tracing-core")
2986 (uri (crate-uri "tracing-core" version))
2987 (file-name (string-append name "-" version ".tar.gz"))
2990 "01fa73wzw2m5ybi3kkd52dgrw97mgc3i6inmhwys46ab28giwnxi"))))
2991 (build-system cargo-build-system)
2994 (("rust-lazy-static" ,rust-lazy-static))))
2995 (home-page "https://tokio.rs")
2996 (synopsis "Core primitives for application-level tracing")
2998 "Core primitives for application-level tracing.")
2999 (license (list license:asl2.0
3002 (define-public rust-traitobject
3004 (name "rust-traitobject")
3009 (uri (crate-uri "traitobject" version))
3010 (file-name (string-append name "-" version ".tar.gz"))
3013 "0yb0n8822mr59j200fyr2fxgzzgqljyxflx9y8bdy3rlaqngilgg"))))
3014 (build-system cargo-build-system)
3015 (home-page "https://github.com/reem/rust-traitobject.git")
3016 (synopsis "Unsafe helpers for dealing with raw trait objects")
3017 (description "Unsafe helpers for dealing with raw trait objects.")
3018 (license (list license:asl2.0
3021 (define-public rust-try-from
3023 (name "rust-try-from")
3028 (uri (crate-uri "try_from" version))
3029 (file-name (string-append name "-" version ".tar.gz"))
3032 "12wdd4ja7047sd3rx70hv2056hyc8gcdllcx3a41g1rnw64kng98"))))
3033 (build-system cargo-build-system)
3036 (("rust-cfg-if" ,rust-cfg-if))))
3037 (home-page "https://github.com/derekjw/try_from")
3038 (synopsis "TryFrom and TryInto traits for failable conversions")
3040 "TryFrom and TryInto traits for failable conversions that return a Result.")
3041 (license license:expat)))
3043 (define-public rust-try-lock
3045 (name "rust-try-lock")
3050 (uri (crate-uri "try-lock" version))
3051 (file-name (string-append name "-" version ".tar.gz"))
3054 "10p36rx6pqi9d0zr876xa8vksx2m66ha45myakl50rn08dxyn176"))))
3055 (build-system cargo-build-system)
3056 (home-page "https://github.com/seanmonstar/try-lock")
3057 (synopsis "Lightweight atomic lock")
3059 "This package provides a lightweight atomic lock.")
3060 (license license:expat)))
3062 (define-public rust-typeable
3064 (name "rust-typeable")
3069 (uri (crate-uri "typeable" version))
3070 (file-name (string-append name "-" version ".tar.gz"))
3073 "11w8dywgnm32hb291izjvh4zjd037ccnkk77ahk63l913zwzc40l"))))
3074 (build-system cargo-build-system)
3075 (home-page "https://github.com/reem/rust-typeable")
3076 (synopsis "Exposes Typeable, for getting TypeIds at runtime")
3077 (description "Exposes Typeable, for getting TypeIds at runtime.")
3078 (license license:expat)))
3080 (define-public rust-typemap
3082 (name "rust-typemap")
3087 (uri (crate-uri "typemap" version))
3088 (file-name (string-append name "-" version ".tar.gz"))
3091 "1xm1gbvz9qisj1l6d36hrl9pw8imr8ngs6qyanjnsad3h0yfcfv5"))))
3092 (build-system cargo-build-system)
3095 (("rust-unsafe-any" ,rust-unsafe-any))))
3096 (home-page "https://github.com/reem/rust-typemap")
3097 (synopsis "Typesafe store for many value types")
3099 "A typesafe store for many value types.")
3100 (license license:expat)))
3102 (define-public rust-typenum
3104 (name "rust-typenum")
3109 (uri (crate-uri "typenum" version))
3110 (file-name (string-append name "-" version ".tar.gz"))
3113 "0sc1jirllfhdi52z1xv9yqzxzpk6v7vadd13n7wvs1wnjipn6bb1"))))
3114 (build-system cargo-build-system)
3115 (home-page "https://github.com/paholg/typenum")
3116 (synopsis "Rust library for type-level numbers evaluated at compile time")
3117 (description "Typenum is a Rust library for type-level numbers evaluated at
3118 compile time. It currently supports bits, unsigned integers, and signed
3119 integers. It also provides a type-level array of type-level numbers, but its
3120 implementation is incomplete.")
3121 (license (list license:asl2.0
3124 (define-public rust-ucd-trie
3126 (name "rust-ucd-trie")
3131 (uri (crate-uri "ucd-trie" version))
3132 (file-name (string-append name "-" version ".tar.gz"))
3135 "1hh6kyzh5xygwy96wfmsf8v8czlzhps2lgbcyhj1xzy1w1xys04g"))))
3136 (build-system cargo-build-system)
3138 `(#:cargo-development-inputs
3139 (("rust-lazy-static" ,rust-lazy-static))))
3140 (home-page "https://github.com/BurntSushi/ucd-generate")
3141 (synopsis "Trie for storing Unicode codepoint sets and maps")
3143 "This package provides a trie for storing Unicode codepoint sets and maps.")
3144 (license (list license:asl2.0
3147 (define-public rust-ucd-util
3149 (name "rust-ucd-util")
3154 (uri (crate-uri "ucd-util" version))
3155 (file-name (string-append name "-" version ".tar.gz"))
3158 "0x088q5z0m09a2jqcfgsnq955y8syn1mgn35cl78qinkxm4kp6zs"))))
3159 (build-system cargo-build-system)
3160 (home-page "https://github.com/BurntSushi/ucd-generate")
3161 (synopsis "library for working with the Unicode character database")
3162 (description "This package provides a small utility library for working
3163 with the Unicode character database.")
3164 (license (list license:asl2.0
3167 (define-public rust-unicase
3169 (name "rust-unicase")
3174 (uri (crate-uri "unicase" version))
3175 (file-name (string-append name "-" version ".tar.gz"))
3178 "1xmpmkakhhblq7dzab1kwyv925kv7fqjkjsxjspg6ix9n88makm8"))))
3179 (build-system cargo-build-system)
3181 `(#:cargo-inputs (("rust-version-check" ,rust-version-check-0.1))))
3182 (home-page "https://github.com/seanmonstar/unicase")
3183 (synopsis "Case-insensitive wrapper around strings")
3185 "A case-insensitive wrapper around strings.")
3186 (license (list license:asl2.0
3189 (define-public rust-unicode-width
3191 (name "rust-unicode-width")
3196 (uri (crate-uri "unicode-width" version))
3197 (file-name (string-append name "-" version ".tar.gz"))
3200 "09k5lipygardwy0660jhls08fsgknrazzivmn804gps53hiqc8w8"))))
3201 (build-system cargo-build-system)
3202 (home-page "https://github.com/unicode-rs/unicode-width")
3203 (synopsis "Determine displayed width according to Unicode rules")
3204 (description "This crate allows you to determine displayed width of
3205 @code{char} and @code{str} types according to Unicode Standard Annex #11 rules.")
3206 (license (list license:asl2.0
3209 (define-public rust-unicode-xid
3211 (name "rust-unicode-xid")
3216 (uri (crate-uri "unicode-xid" version))
3218 (string-append name "-" version ".tar.gz"))
3221 "0z09fn515xm7zyr0mmdyxa9mx2f7azcpv74pqmg611iralwpcvl2"))))
3222 (build-system cargo-build-system)
3224 "https://github.com/unicode-rs/unicode-xid")
3225 (synopsis "Determine Unicode XID related properties")
3226 (description "Determine whether characters have the XID_Start
3227 or XID_Continue properties according to Unicode Standard Annex #31.")
3229 (license (list license:asl2.0 license:expat))))
3231 (define-public rust-unicode-xid-0.1
3233 (inherit rust-unicode-xid)
3234 (name "rust-unicode-xid")
3239 (uri (crate-uri "unicode-xid" version))
3240 (file-name (string-append name "-" version ".tar.gz"))
3243 "1z57lqh4s18rr4x0j4fw4fmp9hf9346h0kmdgqsqx0fhjr3k0wpw"))))))
3245 (define-public rust-unindent
3247 (name "rust-unindent")
3252 (uri (crate-uri "unindent" version))
3253 (file-name (string-append name "-" version ".tar.gz"))
3256 "1x21ilf78aqcq9xzb9b7i628wm10rhk0jp0chlv06rkc690l8jw3"))))
3257 (build-system cargo-build-system)
3258 (home-page "https://github.com/dtolnay/indoc")
3259 (synopsis "Remove a column of leading whitespace from a string")
3260 (description "This crate allows you to remove a column of leading
3261 whitespace from a string.")
3262 (license (list license:asl2.0
3265 (define-public rust-unsafe-any
3267 (name "rust-unsafe-any")
3272 (uri (crate-uri "unsafe-any" version))
3273 (file-name (string-append name "-" version ".tar.gz"))
3276 "0zwwphsqkw5qaiqmjwngnfpv9ym85qcsyj7adip9qplzjzbn00zk"))))
3277 (build-system cargo-build-system)
3280 (("rust-traitobject" ,rust-traitobject))))
3281 (home-page "https://tokio.rs")
3282 (synopsis "Traits and implementations for unchecked downcasting")
3284 "Traits and implementations for unchecked downcasting.")
3285 (license license:expat)))
3287 (define-public rust-untrusted
3289 (name "rust-untrusted")
3294 (uri (crate-uri "untrusted" version))
3295 (file-name (string-append name "-" version ".tar.gz"))
3298 "1kmfykcwif6ashkwg54gcnhxj03kpba2i9vc7z5rpr0xlgvrwdk0"))))
3299 (build-system cargo-build-system)
3300 (home-page "https://github.com/briansmith/untrusted")
3301 (synopsis "Zero-allocation parsing of untrusted inputs in Rust")
3303 "Safe, fast, zero-panic, zero-crashing, zero-allocation parsing of
3304 untrusted inputs in Rust.")
3305 (license license:isc)))
3307 (define-public rust-vcpkg
3314 (uri (crate-uri "vcpkg" version))
3315 (file-name (string-append name "-" version ".tar.gz"))
3318 "15dzk1b96q946v9aisbd1bbhi33n93wvgziwh1shmscn1xflbp9k"))))
3319 (build-system cargo-build-system)
3321 `(#:cargo-development-inputs
3322 (("rust-lazy-static" ,rust-lazy-static)
3323 ("rust-tempdir" ,rust-tempdir))
3324 #:tests? #f)) ; tests try to link libmysql, graphite2, harfbuzz
3325 (home-page "https://github.com/mcgoo/vcpkg-rs")
3326 (synopsis "Find native dependencies in a vcpkg tree at build time")
3328 "This package provides a library to find native dependencies in a
3329 @code{vcpkg} tree at build time in order to be used in Cargo build scripts.")
3330 (license (list license:asl2.0
3333 (define-public rust-version-check
3335 (name "rust-version-check")
3340 (uri (crate-uri "version_check" version))
3341 (file-name (string-append name "-" version ".tar.gz"))
3344 "1kikqlnggii1rvnxrbls55sc46lxvinz5k3giscgncjj4p87b1q7"))))
3345 (build-system cargo-build-system)
3346 (home-page "https://github.com/SergioBenitez/version_check")
3347 (synopsis "Check that the installed rustc meets some version requirements")
3349 "This tiny crate checks that the running or installed rustc meets some
3350 version requirements. The version is queried by calling the Rust compiler with
3351 @code{--version}. The path to the compiler is determined first via the
3352 @code{RUSTC} environment variable. If it is not set, then @code{rustc} is used.
3353 If that fails, no determination is made, and calls return None.")
3354 (license (list license:asl2.0
3357 (define-public rust-version-check-0.1
3359 (inherit rust-version-check)
3360 (name "rust-version-check")
3365 (uri (crate-uri "version_check" version))
3366 (file-name (string-append name "-" version ".tar.gz"))
3369 "1pf91pvj8n6akh7w6j5ypka6aqz08b3qpzgs0ak2kjf4frkiljwi"))))))
3371 (define-public rust-void
3378 (uri (crate-uri "void" version))
3379 (file-name (string-append name "-" version ".tar.gz"))
3382 "0zc8f0ksxvmhvgx4fdg0zyn6vdnbxd2xv9hfx4nhzg6kbs4f80ka"))))
3383 (build-system cargo-build-system)
3384 (home-page "https://github.com/reem/rust-void.git")
3385 (synopsis "Void type for use in statically impossible cases")
3387 "The uninhabited void type for use in statically impossible cases.")
3388 (license license:expat)))
3390 (define-public rust-walkdir
3392 (name "rust-walkdir")
3397 (uri (crate-uri "walkdir" version))
3398 (file-name (string-append name "-" version ".tar.gz"))
3401 "07ppalpvxkf8cnqr64np422792y4z5bs9m8b4nrflh5rm17wjn4n"))))
3402 (build-system cargo-build-system)
3405 (("rust-same-file" ,rust-same-file)
3406 ("rust-winapi" ,rust-winapi)
3407 ("rust-winapi-util" ,rust-winapi-util))
3408 #:cargo-development-inputs
3409 (("rust-doc-comment" ,rust-doc-comment))))
3410 (home-page "https://github.com/BurntSushi/walkdir")
3411 (synopsis "Recursively walk a directory")
3412 (description "Recursively walk a directory.")
3413 (license (list license:unlicense
3416 (define-public rust-wasi
3423 (uri (crate-uri "wasi" version))
3425 (string-append name "-" version ".tar.gz"))
3428 "1ir3pd4phdfml0cbziw9bqp7mnk0vfp9biy8bh25lln6raml4m7x"))))
3429 (build-system cargo-build-system)
3430 (home-page "https://github.com/CraneStation/rust-wasi")
3431 (synopsis "Experimental WASI API bindings for Rust")
3432 (description "This package contains experimental WASI API bindings
3434 (license license:asl2.0)))
3436 (define-public rust-wasm-bindgen-shared
3438 (name "rust-wasm-bindgen-shared")
3443 (uri (crate-uri "wasm-bindgen-shared" version))
3444 (file-name (string-append name "-" version ".tar.gz"))
3447 "08rnfhjyk0f6liv8n4rdsvhx7r02glkhcbj2lp9lcbkbfpad9hnr"))))
3448 (build-system cargo-build-system)
3449 (home-page "https://rustwasm.github.io/wasm-bindgen/")
3450 (synopsis "Shared support between wasm-bindgen and wasm-bindgen cli")
3451 (description "This package provides shared support between
3452 @code{wasm-bindgen} and @code{wasm-bindgen} cli, an internal dependency.")
3453 (license (list license:asl2.0
3456 (define-public rust-wasm-bindgen-test-macro
3458 (name "rust-wasm-bindgen-test-macro")
3463 (uri (crate-uri "wasm-bindgen-test-macro" version))
3464 (file-name (string-append name "-" version ".tar.gz"))
3467 "0n28mr6vncf1k1qr2b5bvfxq4jvqkjdzq0z0ab6w2f5d6v8q3q3l"))))
3468 (build-system cargo-build-system)
3471 (("rust-proc-macro2" ,rust-proc-macro2)
3472 ("rust-quote" ,rust-quote))))
3473 (home-page "https://github.com/rustwasm/wasm-bindgen")
3474 (synopsis "Internal testing macro for wasm-bindgen")
3476 "This library contains the internal testing macro for wasm-bindgen.")
3477 (license (list license:asl2.0
3480 (define-public rust-widestring
3482 (name "rust-widestring")
3487 (uri (crate-uri "widestring" version))
3488 (file-name (string-append name "-" version ".tar.gz"))
3491 "1dhx6dndjsz1y7c9w06922412kdxyrrkqblvggm76mh8z17hxz7g"))))
3492 (build-system cargo-build-system)
3494 `(#:cargo-development-inputs
3495 (("rust-winapi" ,rust-winapi))))
3496 (home-page "https://github.com/starkat99/widestring-rs")
3497 (synopsis "Wide string Rust FFI library")
3499 "A wide string Rust FFI library for converting to and from wide strings,
3500 such as those often used in Windows API or other FFI libaries. Both UTF-16 and
3501 UTF-32 types are provided, including support for malformed encoding.")
3502 (license (list license:asl2.0
3505 (define-public rust-winapi
3507 (name "rust-winapi")
3512 (uri (crate-uri "winapi" version))
3513 (file-name (string-append name "-" version ".tar.gz"))
3516 "1ii9j9lzrhwri0902652awifzx9fpayimbp6hfhhc296xcg0k4w0"))))
3517 (build-system cargo-build-system)
3520 (("rust-winapi-i686-pc-windows-gnu"
3521 ,rust-winapi-i686-pc-windows-gnu)
3522 ("rust-winapi-x86-64-pc-windows-gnu"
3523 ,rust-winapi-x86-64-pc-windows-gnu))))
3524 (home-page "https://github.com/retep998/winapi-rs")
3525 (synopsis "Raw FFI bindings for all of Windows API.")
3527 "Raw FFI bindings for all of Windows API.")
3528 (license (list license:asl2.0
3531 (define-public rust-winapi-0.2
3533 (inherit rust-winapi)
3534 (name "rust-winapi")
3539 (uri (crate-uri "winapi" version))
3540 (file-name (string-append name "-" version ".tar.gz"))
3543 "0yh816lh6lf56dpsgxy189c2ai1z3j8mw9si6izqb6wsjkbcjz8n"))))
3544 ;; We do not want to package 48 -sys crates for a package we do not want.
3545 ;; They are all dev dependencies, so we skip building and testing.
3549 (modify-phases %standard-phases
3550 (delete 'build))))))
3552 (define-public rust-winapi-build
3554 (name "rust-winapi-build")
3559 (uri (crate-uri "winapi-build" version))
3560 (file-name (string-append name "-" version ".tar.gz"))
3563 "1g4rqsgjky0a7530qajn2bbfcrl2v0zb39idgdws9b1l7gp5wc9d"))))
3564 (build-system cargo-build-system)
3565 (home-page "https://github.com/retep998/winapi-rs")
3566 (synopsis "Common code for build.rs in WinAPI -sys crates")
3568 "Common code for build.rs in WinAPI -sys crates.")
3569 (license license:expat)))
3571 (define-public rust-winapi-i686-pc-windows-gnu
3573 (name "rust-winapi-i686-pc-windows-gnu")
3578 (uri (crate-uri "winapi-i686-pc-windows-gnu" version))
3579 (file-name (string-append name "-" version ".tar.gz"))
3582 "1dmpa6mvcvzz16zg6d5vrfy4bxgg541wxrcip7cnshi06v38ffxc"))))
3583 (build-system cargo-build-system)
3584 (home-page "https://github.com/retep998/winapi-rs")
3585 (synopsis "Import libraries for the i686-pc-windows-gnu target")
3586 (description "This crate provides import libraries for the
3587 i686-pc-windows-gnu target. Please don't use this crate directly, depend on
3588 @code{winapi} instead.")
3589 (license (list license:asl2.0
3592 (define-public rust-winapi-util
3594 (name "rust-winapi-util")
3599 (uri (crate-uri "winapi-util" version))
3600 (file-name (string-append name "-" version ".tar.gz"))
3603 "1j839dc6y8vszvrsb7yk0qvs0w6asnahxzbyans37vnsw6vbls3i"))))
3604 (build-system cargo-build-system)
3606 `(#:cargo-inputs (("rust-winapi" ,rust-winapi))))
3607 (home-page "https://github.com/BurntSushi/winapi-util")
3608 (synopsis "Dumping ground for high level safe wrappers over winapi")
3610 "This package provides a dumping ground for high level safe wrappers over
3612 (license (list license:unlicense
3615 (define-public rust-winapi-x86-64-pc-windows-gnu
3617 (name "rust-winapi-x86-64-pc-windows-gnu")
3622 (uri (crate-uri "winapi-x86_64-pc-windows-gnu" version))
3623 (file-name (string-append name "-" version ".tar.gz"))
3626 "0gqq64czqb64kskjryj8isp62m2sgvx25yyj3kpc2myh85w24bki"))))
3627 (build-system cargo-build-system)
3628 (home-page "https://github.com/retep998/winapi-rs")
3629 (synopsis "Import libraries for the x86_64-pc-windows-gnu target")
3630 (description "This package provides import libraries for the
3631 x86_64-pc-windows-gnu target. Please don't use this crate directly, depend on
3632 @code{winapi} instead.")
3633 (license (list license:asl2.0
3636 (define-public rust-wincolor
3638 (name "rust-wincolor")
3643 (uri (crate-uri "wincolor" version))
3644 (file-name (string-append name "-" version ".tar.gz"))
3647 "1agaf3hcav113i86912ajnw6jxcy4rvkrgyf8gdj8kc031mh3xcn"))))
3648 (build-system cargo-build-system)
3651 (("rust-winapi" ,rust-winapi)
3652 ("rust-winapi-util" ,rust-winapi-util))))
3653 (home-page "https://github.com/BurntSushi/termcolor/tree/master/wincolor")
3654 (synopsis "Windows API for controlling text color in a Windows console")
3656 "This package provides a simple Windows specific API for controlling text
3657 color in a Windows console.")
3658 (license (list license:unlicense
3661 (define-public rust-winutil
3663 (name "rust-winutil")
3668 (uri (crate-uri "winutil" version))
3669 (file-name (string-append name "-" version ".tar.gz"))
3672 "0vkyl3fbbf05n5ph5yz8sfaccrk9x3qsr25560w6w68ldf5i7bvx"))))
3673 (build-system cargo-build-system)
3676 (("rust-winapi" ,rust-winapi))
3677 ;; This unmaintained crate cannot find winapi when built directly.
3680 (modify-phases %standard-phases
3682 (home-page "https://bitbucket.org/DaveLancaster/winutil")
3683 (synopsis "Library wrapping a handful of useful winapi functions")
3685 "A simple library wrapping a handful of useful winapi functions.")
3686 (license license:expat)))
3688 (define-public rust-ws2-32-sys
3690 (name "rust-ws2-32-sys")
3695 (uri (crate-uri "ws2_32-sys" version))
3696 (file-name (string-append name "-" version ".tar.gz"))
3699 "0ppscg5qfqaw0gzwv2a4nhn5bn01ff9iwn6ysqnzm4n8s3myz76m"))))
3700 (build-system cargo-build-system)
3703 (("rust-winapi" ,rust-winapi-0.2)
3704 ("rust-winapi-build" ,rust-winapi-build))
3706 (modify-phases %standard-phases
3707 (add-after 'unpack 'fix-Cargo-toml
3709 (substitute* "Cargo.toml"
3710 ((", path =.* }") "}\n"))
3712 (home-page "https://github.com/retep998/winapi-rs")
3713 (synopsis "Function definitions for the Windows API library ws2_32")
3715 "Contains function definitions for the Windows API library ws2_32.")
3716 (license license:expat)))
3718 (define-public rust-xattr
3725 (uri (crate-uri "xattr" version))
3726 (file-name (string-append name "-" version ".tar.gz"))
3729 "0k556fb6f5jc907975j9c8iynl2fqz3rf0w6fiig83i4yi0kfk14"))))
3730 (build-system cargo-build-system)
3733 (("rust-libc" ,rust-libc))
3734 #:cargo-development-inputs
3735 (("rust-tempfile" ,rust-tempfile))
3736 #:tests? #f)) ; Tests assume read access to /var.
3737 (home-page "https://github.com/Stebalien/xattr")
3738 (synopsis "Unix extended filesystem attributes")
3740 "This package provide a small library for setting, getting, and listing
3741 extended attributes.")
3742 (license (list license:asl2.0
3745 (define-public rust-xdg
3752 (uri (crate-uri "xdg" version))
3753 (file-name (string-append name "-" version ".tar.gz"))
3756 "0mws8a0fr3cqk5nh7aq9lmkmhzghvasqy4mhw6nnza06l4d6i2fh"))))
3757 (build-system cargo-build-system)
3758 (home-page "https://github.com/whitequark/rust-xdg")
3759 (synopsis "Store and retrieve files according to XDG specification")
3761 "This package provides a library for storing and retrieving files according
3762 to XDG Base Directory specification")
3763 (license (list license:asl2.0