summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-08-28 16:42:41 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-08-28 16:53:09 +0300
commitefc244c53b29cec558562a3b6f26dc356771018c (patch)
treec80d4230d7d605e23e2f5e2e42e0808c4079182e /gnu/packages
parentea1c425569618c8a47601c9436c08c042c13f57f (diff)
downloadguix-efc244c53b29cec558562a3b6f26dc356771018c.tar.gz
gnu: Add rust-try-from.
* gnu/packages/crates-io.scm (rust-try-from): New variable.
Diffstat (limited to 'gnu/packages')
-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 58e6319588..5b17399322 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")