Subject: [bug#66579] [PATCH v2 08/15] gnu: Add rust-shannon

From: Steve George <[email-masked]>
Date: Fri, 20 Oct 2023 21:27:54 +0100

* gnu/packages/crates-io.scm (rust-shannon): 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 83e6f11b05..9aa975cf42 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -61586,6 +61586,28 @@ (define-public rust-shadow-rs-0.8
 exactly where a binary came from and how it was built.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-shannon-0.2
+  (package
+    (name "rust-shannon")
+    (version "0.2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "shannon" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0qa52zs4y1i87ysr11g9p6shpdagl14bb340gfm6rd97jhfb99by"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:skip-build? #f
+           #:cargo-inputs `(("rust-byteorder" ,rust-byteorder-1))))
+    (home-page "https://docs.rs/shannon/0.2.0/shannon/")
+    (synopsis "Shannon cipher implementation")
+    (description
+     "A Shannon cipher implementation, that encrypts a message using a
+shared secret key.")
+    (license license:expat)))
+
 (define-public rust-sharded-slab-0.1
   (package
     (name "rust-sharded-slab")
-- 
2.41.0