Subject: [bug#68543] [PATCH 14/24] gnu: Add rust-memmap2-0.9.

From: Nicolas Goaziou <[email-masked]>
Date: Wed, 17 Jan 2024 19:22:22 +0100

* gnu/packages/crates-io.scm (rust-memmap2-0.9): New variable.
(rust-memmap2-0.7): Inherit from above.

Change-Id: I074eb807906cfe200fb6bef1c2246b489af716aa
---
 gnu/packages/crates-io.scm | 26 +++++++++++++++++++++++---
 1 file changed, 23 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d79c4ee268..dca6171836 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44621,17 +44621,17 @@ (define-public rust-memmap-0.2
        #:cargo-development-inputs
        (("rust-tempdir" ,rust-tempdir-0.3))))))
 
-(define-public rust-memmap2-0.7
+(define-public rust-memmap2-0.9
   (package
     (name "rust-memmap2")
-    (version "0.7.1")
+    (version "0.9.3")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "memmap2" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1il82b0mw304jlwvl0m89aa8bj5dgmm3vbb0jg8lqlrk0p98i4zl"))))
+        (base32 "14kwkwh1cr790dhrdwzyjxp2f5k1jp7w1swc7z38py0vhdbkmza5"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
@@ -44646,6 +44646,26 @@ (define-public rust-memmap2-0.7
      "This package provides a Rust API for memory-mapped file IO.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-memmap2-0.7
+  (package
+    (inherit rust-memmap2-0.9)
+    (name "rust-memmap2")
+    (version "0.7.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "memmap2" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1il82b0mw304jlwvl0m89aa8bj5dgmm3vbb0jg8lqlrk0p98i4zl"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-libc" ,rust-libc-0.2)
+        ("rust-stable-deref-trait" ,rust-stable-deref-trait-1))
+       #:cargo-development-inputs
+       (("rust-owning-ref" ,rust-owning-ref-0.4)
+        ("rust-tempfile" ,rust-tempfile-3))))))
+
 (define-public rust-memmap2-0.5
   (package
     (inherit rust-memmap2-0.7)
-- 
2.41.0