guix-commits
[Top][All Lists]
Advanced

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

233/424: gnu: Add rust-mbox-0.7.


From: guix-commits
Subject: 233/424: gnu: Add rust-mbox-0.7.
Date: Sun, 10 Nov 2024 05:42:13 -0500 (EST)

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

commit 6aec070abaab84a4bc78d4698c4d589f811013c3
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Sep 22 21:21:06 2024 +0300

    gnu: Add rust-mbox-0.7.
    
    * gnu/packages/crates-io.scm (rust-mbox-0.7): New variable.
    
    Change-Id: I6b8fc4cf1627ec462ed119b8d171202fb6325965
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b2930ad6cb..f48f0ff78d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -42384,6 +42384,29 @@ async code in Rust.")
      "This package provides MaybeUninit for friends of backwards 
compatibility.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-mbox-0.7
+  (package
+    (name "rust-mbox")
+    (version "0.7.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "mbox" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1pn67fg52nwi2pk2j1nqlwgh477ygsz3znf6kxkqqkmwmnp45l96"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
+                       ("rust-stable-deref-trait" 
,rust-stable-deref-trait-1))))
+    (home-page "https://github.com/kennytm/mbox";)
+    (synopsis "Malloc-based box")
+    (description
+     "This package provides malloc-based box.  Supports wrapping pointers or
+null-terminated strings returned from malloc as a Rust type, which will be
+free'd on drop.")
+    (license license:expat)))
+
 (define-public rust-memchr-2
   (package
     (name "rust-memchr")



reply via email to

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