summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-08-28 15:44:58 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-08-28 16:53:03 +0300
commit0c15f1432cd67299b2e3fd59421fcef120eadb8c (patch)
tree95710407d66830688721eb843b26b3136d46dd21 /gnu
parent73645bcb47d25a133d30fb1bcc28b487c2087546 (diff)
downloadguix-0c15f1432cd67299b2e3fd59421fcef120eadb8c.tar.gz
gnu: Add rust-data-encoding.
* gnu/packages/crates-io.scm (rust-data-encoding): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm20
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 58f4d1831b..5a682d466c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -220,6 +220,26 @@ depending on a large number of #[cfg] parameters.  Structured like an
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-data-encoding
+  (package
+    (name "rust-data-encoding")
+    (version "2.1.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "data-encoding" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "15xd6afhsjl08285piwczrafmckpp8i29padj8v12xhahshprx7l"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/ia0/data-encoding")
+    (synopsis "Efficient and customizable data-encoding functions")
+    (description
+     "This library provides encodings for many different common cases, including
+hexadecimal, bas32, and base64.")
+    (license license:expat)))
+
 (define-public rust-discard
   (package
     (name "rust-discard")