guix-commits
[Top][All Lists]
Advanced

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

46/53: gnu: Add rust-try-from.


From: guix-commits
Subject: 46/53: gnu: Add rust-try-from.
Date: Wed, 28 Aug 2019 09:55:07 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit efc244c53b29cec558562a3b6f26dc356771018c
Author: Efraim Flashner <address@hidden>
Date:   Wed Aug 28 16:42:41 2019 +0300

    gnu: Add rust-try-from.
    
    * gnu/packages/crates-io.scm (rust-try-from): New variable.
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 58e6319..5b17399 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1646,6 +1646,28 @@ fixed set of worker threads.")
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-try-from
+  (package
+    (name "rust-try-from")
+    (version "0.3.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "try_from" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "12wdd4ja7047sd3rx70hv2056hyc8gcdllcx3a41g1rnw64kng98"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+      (("rust-cfg-if" ,rust-cfg-if))))
+    (home-page "https://github.com/derekjw/try_from";)
+    (synopsis "TryFrom and TryInto traits for failable conversions")
+    (description
+      "TryFrom and TryInto traits for failable conversions that return a 
Result.")
+    (license license:expat)))
+
 (define-public rust-typenum
   (package
     (name "rust-typenum")



reply via email to

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