aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-09-17 18:30:51 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-09-17 19:40:09 +0300
commit0cb01bb99dee40a4b6e038c886cf50ad9237e83c (patch)
tree6be29d2c5f16de476d0fdb265518b3e52f556c11 /gnu
parent241bc53eaddf46a7ce58b5562893230605a3541b (diff)
downloadpatches-0cb01bb99dee40a4b6e038c886cf50ad9237e83c.tar
patches-0cb01bb99dee40a4b6e038c886cf50ad9237e83c.tar.gz
gnu: Add rust-unreachable.
* gnu/packages/crates-io.scm (rust-unreachable): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c0163b8e05..948bb8748f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4118,6 +4118,28 @@ whitespace from a string.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-unreachable
+ (package
+ (name "rust-unreachable")
+ (version "1.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "unreachable" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0mps2il4xy2mjqc3appas27hhn2xmvixc3bzzhfrjj74gy3i0a1q"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-void" ,rust-void))))
+ (home-page "https://github.com/reem/rust-unreachable")
+ (synopsis "Unreachable code optimization hint in rust")
+ (description
+ "This package provides an unreachable code optimization hint in rust.")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-unsafe-any
(package
(name "rust-unsafe-any")