summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2020-09-16 19:47:27 +0530
committerArun Isaac <arunisaac@systemreboot.net>2020-10-12 11:41:44 +0530
commit9b4a3be4f131f712b3e1fa43e1fef93e1f2689ae (patch)
treea168060513da9534ae89defb2eca3a281a8e4916
parent1739de9a1071c1e39cc5c04ccbf75e35cb7f78da (diff)
downloadguix-9b4a3be4f131f712b3e1fa43e1fef93e1f2689ae.tar.gz
gnu: Add rust-crc-1.
* gnu/packages/crates-io.scm (rust-crc-1): New variable.
-rw-r--r--gnu/packages/crates-io.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6cd485d7a9..d1420e3644 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4118,6 +4118,30 @@ to @code{is_x86_feature_detected}.")
      "Library for retrieving and interacting with the crates.io index.")
     (license license:asl2.0)))
 
+(define-public rust-crc-1
+  (package
+    (name "rust-crc")
+    (version "1.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "crc" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1nwgidcckh1gkndhi0c0zry3qv6ly2z6fp8fgy8q5cfca9jcma50"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-build-const" ,rust-build-const-0.2))
+       #:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.2))))
+    (home-page "https://crates.io/crates/crc")
+    (synopsis "Rust implementation of CRC(16, 32, 64)")
+    (description "This package provides a Rust implementation of CRC(16, 32,
+64) with support for various standards.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-crc32fast-1
   (package
     (name "rust-crc32fast")