summary refs log tree commit diff
diff options
context:
space:
mode:
authorAttila Lendvai <attila@lendvai.name>2022-01-19 17:16:15 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-01-28 01:10:55 +0100
commit601482a9fd3ed06a9f8f29b8c3ca5bdc07367f21 (patch)
tree28ab321e47f064ba6f6292271e7c6879bd66e91d
parent4e333ddc0bf84f3f837e13f193d9ec6a5d3faa7d (diff)
downloadguix-601482a9fd3ed06a9f8f29b8c3ca5bdc07367f21.tar.gz
gnu: Add rust-byte-slice-cast-1.
* gnu/packages/crates-io.scm (rust-byte-slice-cast-1): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/crates-io.scm19
1 files changed, 19 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c49aa3928b..dead584f1e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -8595,6 +8595,25 @@ reasonable.")
 memory usage.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-byte-slice-cast-1
+  (package
+    (name "rust-byte-slice-cast")
+    (version "1.2.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "byte-slice-cast" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32 "162618ai9pnsim49lkjpq2yi2b3wssclvqxwwycw8xrbb58wfc0x"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/sdroege/bytes-num-slice-cast")
+    (synopsis
+      "Safely cast bytes slices from/to slices of built-in fundamental numeric types")
+    (description "This Rust library enables safely cast bytes slices from/to slices
+of built-in fundamental numeric types.")
+    (license license:expat)))
+
 (define-public rust-byte-tools-0.3
   (package
     (name "rust-byte-tools")