guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 17/86] gnu: Add rust-unreachable.


From: ng0
Subject: [PATCH 17/86] gnu: Add rust-unreachable.
Date: Tue, 3 Jan 2017 23:35:33 +0000

* gnu/packages/rust.scm (rust-unreachable): New variable.
---
 gnu/packages/rust.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 22ce59869..9893e5a72 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -607,3 +607,25 @@ local storage (TLS) so any type can be stored into TLS.")
      "Bitflags provides a macro to generate structures which
 behave like bitflags.")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-unreachable
+  (package
+    (name "rust-unreachable")
+    (version "0.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "unreachable" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "14gzpm329nrfgjvxf6zh77sp7plxakcnsq8p8xk9474fn7fyaahz"))))
+    (build-system cargo-build-system)
+    (inputs `(("rust-void" ,rust-void "src")))
+    (home-page "https://github.com/reem/rust-unreachable.git";)
+    (synopsis "Unreachable code optimization hint stable rust")
+    (description
+     "Unreachable provides an unreachable code optimization hint in
+stable rust, and some useful extension traits for @code{Option} and 
@code{Result}.")
+    (license license:expat)))
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]