diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2019-08-04 12:53:50 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2019-08-12 11:57:23 +0300 |
commit | b97712821231e2f846f9c14a906a191125490bb1 (patch) | |
tree | d63efe388f5573876735a914577b530f5d57177c | |
parent | f69bf22334e673dc622eaf9cb55ff28da83d6970 (diff) | |
download | guix-b97712821231e2f846f9c14a906a191125490bb1.tar.gz |
gnu: Add rust-discard.
* gnu/packages/crates-io.scm (rust-discard): New variable.
-rw-r--r-- | gnu/packages/crates-io.scm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 7ba20a0f40..3f9bc1ffb7 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -112,6 +112,26 @@ depending on a large number of #[cfg] parameters. Structured like an (license (list license:asl2.0 license:expat)))) +(define-public rust-discard + (package + (name "rust-discard") + (version "1.0.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "discard" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1h67ni5bxvg95s91wgicily4ix7lcw7cq0a5gy9njrybaibhyb91")))) + (build-system cargo-build-system) + (home-page "https://github.com/Pauan/rust-discard") + (synopsis "Allow for intentionally leaking memory") + (description "There are situations where you need to intentionally leak some +memory but not other memory. This package provides a discard trait which allows +for intentionally leaking memory") + (license license:expat))) + (define-public rust-proc-macro2 (package (name "rust-proc-macro2") |