guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

181/194: gnu: Add rust-memmap2-0.7.


From: guix-commits
Subject: 181/194: gnu: Add rust-memmap2-0.7.
Date: Tue, 3 Oct 2023 14:58:14 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 066be7f41bdb2384ca3d146d443418ef02bbebbc
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 3 16:02:44 2023 +0300

    gnu: Add rust-memmap2-0.7.
    
    * gnu/packages/crates-io.scm (rust-memmap2-0.7): New variable.
    (rust-memmap2-0.5): Inherit from rust-memmap2-0.7.
---
 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 4b79e390c2..7e2ad5bb8e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39182,17 +39182,17 @@ file IO.")
        #:cargo-development-inputs
        (("rust-tempdir" ,rust-tempdir-0.3))))))
 
-(define-public rust-memmap2-0.5
+(define-public rust-memmap2-0.7
   (package
     (name "rust-memmap2")
-    (version "0.5.10")
+    (version "0.7.1")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "memmap2" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "09xk415fxyl4a9pgby4im1v2gqlb5lixpm99dczkk30718na9yl3"))))
+        (base32 "1il82b0mw304jlwvl0m89aa8bj5dgmm3vbb0jg8lqlrk0p98i4zl"))))
     (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
@@ -39207,6 +39207,26 @@ file IO.")
      "This package provides a Rust API for memory-mapped file IO.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-memmap2-0.5
+  (package
+    (inherit rust-memmap2-0.7)
+    (name "rust-memmap2")
+    (version "0.5.10")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "memmap2" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "09xk415fxyl4a9pgby4im1v2gqlb5lixpm99dczkk30718na9yl3"))))
+    (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.3
   (package
     (inherit rust-memmap2-0.5)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]