Subject: [bug#49395] [PATCH 12/21] gnu: Add rust-cipher-0.3

From: Domagoj Stolfa <[email-masked]>
Date: Sun, 4 Jul 2021 17:31:54 +0100

* gnu/packages/crates-io.scm (rust-cipher-0.3): New public variable.
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1542178724..c2221bb87d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -7785,6 +7785,32 @@ coding.")
     (description "This package provides Rust bindings for libclang.")
     (license license:asl2.0)))
 
+(define-public rust-cipher-0.3
+  (package
+    (name "rust-cipher")
+    (version "0.3.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "cipher" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "1dyzsv0c84rgz98d5glnhsz4320wl24x3bq511vnyf0mxir21rby"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-blobby" ,rust-blobby-0.3)
+         ("rust-generic-array" ,rust-generic-array-0.14))))
+    (home-page
+      "https://github.com/RustCrypto/traits")
+    (synopsis
+      "Traits for describing block ciphers and stream ciphers")
+    (description
+      "Traits for describing block ciphers and stream ciphers")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-cipher-0.2
   (package
     (name "rust-cipher")
-- 
2.32.0