summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-06-04 21:30:49 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-06-06 02:38:27 -0400
commit93baaf55cc12aa2a358c44c7db4ff3094ba97b5b (patch)
tree9fc58ab780e945cc7141de534a299f545a3d4511
parent916bbf53a9a44eb8922f4cdd7dfdc4d7006f99a0 (diff)
gnu: Add rust-bitreader-0.3.
* gnu/packages/crates-io.scm (rust-bitreader-0.3): New variable.
-rw-r--r--gnu/packages/crates-io.scm25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8b51018963..a27b68369e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4891,6 +4891,31 @@ behave like a set of bitflags.")
declaring and working with fixed size bitmaps in Rust.")
(license license:mpl2.0)))
+(define-public rust-bitreader-0.3
+ (package
+ (name "rust-bitreader")
+ (version "0.3.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "bitreader" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "06wlzf8ra7k8ya0m71dq0kxbaalaan48dymairn9q8s4gld1hy4i"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-cfg-if" ,rust-cfg-if-1))))
+ (home-page "https://github.com/irauta/bitreader")
+ (synopsis "Individual bits reader from a slice of bytes")
+ (description "BitReader helps reading individual bits from a slice of
+bytes. You can read an arbitrary numbers of bits from the byte slice, for
+example 13 bits at once. The reader internally keeps track of position within
+the buffer.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-bitstream-io-1
(package
(name "rust-bitstream-io")