Subject: [PATCH 09/12] gnu: Add rust-libdeflater-1.

From: Troy Figiel <[email-masked]>
Date: Mon, 22 Jan 2024 23:20:25 +0100

* gnu/packages/crates-io.scm (rust-libdeflater-1): New variable.
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a25e3baa51..2ee1c2fec3 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32409,6 +32409,31 @@ (define-public rust-libdeflate-sys-0.7
     (arguments
      `(#:cargo-inputs (("rust-cc" ,rust-cc-1))))))
 
+(define-public rust-libdeflater-1
+  (package
+    (name "rust-libdeflater")
+    (version "1.19.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "libdeflater" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32 "0zdbiqq2fmjakwk7d1xwnakjnxzaba9rz18k9clyql13cqpv4c9s"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-libdeflate-sys" ,rust-libdeflate-sys-1))
+       #:cargo-development-inputs
+       (("rust-adler32" ,rust-adler32-1)
+        ("rust-criterion" ,rust-criterion-0.3)
+        ("rust-flate2" ,rust-flate2-1))))
+    (home-page "https://github.com/adamkewley/libdeflater")
+    (synopsis "Bindings to libdeflate for DEFLATE")
+    (description "This package provides bindings to libdeflate for DEFLATE
+(de)compression exposed as non-streaming buffer operations.  Contains bindings
+for raw deflate, zlib, and gzip data.")
+    (license license:asl2.0)))
+
 (define-public rust-libdeflater-0.11
   (package
     (name "rust-libdeflater")
-- 
2.42.0