diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2019-08-29 14:54:48 +0300 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2019-08-29 15:05:25 +0300 |
| commit | b8e380f458fa34d2668f38621cac6f53c2db48b6 (patch) | |
| tree | f9cd947d9d2918babc4a3c71330cf457b86db05d /gnu | |
| parent | 9dbb27670daa9876e49f90a58db1f03bdfe51ebc (diff) | |
gnu: Add rust-nodrop, rust-nodrop-union.
* gnu/packages/crates-io.scm (rust-nodrop, rust-nodrop-union): New
variables.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/crates-io.scm | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index dccdd5467f5..c3d2419f886 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm | |||
| @@ -986,6 +986,53 @@ types as proposed in RFC 1158.") | |||
| 986 | (license (list license:asl2.0 | 986 | (license (list license:asl2.0 |
| 987 | license:expat)))) | 987 | license:expat)))) |
| 988 | 988 | ||
| 989 | (define-public rust-nodrop | ||
| 990 | (package | ||
| 991 | (name "rust-nodrop") | ||
| 992 | (version "0.1.13") | ||
| 993 | (source | ||
| 994 | (origin | ||
| 995 | (method url-fetch) | ||
| 996 | (uri (crate-uri "nodrop" version)) | ||
| 997 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 998 | (sha256 | ||
| 999 | (base32 | ||
| 1000 | "0if9ifn6rvar5jirx4b3qh4sl5kjkmcifycvzhxa9j3crkfng5ig")))) | ||
| 1001 | (build-system cargo-build-system) | ||
| 1002 | (arguments | ||
| 1003 | `(#:cargo-inputs | ||
| 1004 | (("rust-nodrop-union" ,rust-nodrop-union)))) | ||
| 1005 | (home-page "https://github.com/bluss/arrayvec") | ||
| 1006 | (synopsis "Wrapper type to inhibit drop (destructor)") | ||
| 1007 | (description "This package provides a wrapper type to inhibit drop | ||
| 1008 | (destructor). Use @code{std::mem::ManuallyDrop} instead!") | ||
| 1009 | (license (list license:asl2.0 | ||
| 1010 | license:expat)))) | ||
| 1011 | |||
| 1012 | ;; This package requires features which are unavailable | ||
| 1013 | ;; on the stable releases of Rust. | ||
| 1014 | (define-public rust-nodrop-union | ||
| 1015 | (package | ||
| 1016 | (name "rust-nodrop-union") | ||
| 1017 | (version "0.1.10") | ||
| 1018 | (source | ||
| 1019 | (origin | ||
| 1020 | (method url-fetch) | ||
| 1021 | (uri (crate-uri "nodrop-union" version)) | ||
| 1022 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 1023 | (sha256 | ||
| 1024 | (base32 | ||
| 1025 | "0jsnkdn9l8jlmb9h4wssi76sxnyxwnyi00p6y1p2gdq7c1gdw2b7")))) | ||
| 1026 | (build-system cargo-build-system) | ||
| 1027 | (home-page "https://github.com/bluss/arrayvec") | ||
| 1028 | (synopsis "Wrapper type to inhibit drop (destructor)") | ||
| 1029 | (description "This package provides a wrapper type to inhibit drop | ||
| 1030 | (destructor). Implementation crate for nodrop, the untagged unions | ||
| 1031 | implementation (which is unstable / requires nightly).") | ||
| 1032 | (properties '((hidden? . #t))) | ||
| 1033 | (license (list license:asl2.0 | ||
| 1034 | license:expat)))) | ||
| 1035 | |||
| 989 | (define-public rust-num-cpus | 1036 | (define-public rust-num-cpus |
| 990 | (package | 1037 | (package |
| 991 | (name "rust-num-cpus") | 1038 | (name "rust-num-cpus") |
