guix-commits
[Top][All Lists]
Advanced

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

297/330: gnu: Add rust-thin-vec-0.2.


From: guix-commits
Subject: 297/330: gnu: Add rust-thin-vec-0.2.
Date: Mon, 18 Mar 2024 07:16:41 -0400 (EDT)

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

commit 2bb927d5ac613d7e8d3d31bc68a91f1ab858f7fe
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 18 12:01:35 2024 +0200

    gnu: Add rust-thin-vec-0.2.
    
    * gnu/packages/crates-io.scm (rust-thin-vec-0.2): New variable.
    
    Change-Id: Iad41f2ff56af487ee2bb2d86812e1fe97e87d305
---
 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 d582830590..c1b8b13313 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -74395,6 +74395,29 @@ handle Unicode characters correctly.")
      "An owned slice that packs the slice storage into a single word when 
possible.")
     (license license:mpl2.0)))
 
+(define-public rust-thin-vec-0.2
+  (package
+    (name "rust-thin-vec")
+    (version "0.2.13")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "thin-vec" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0jsyprh9gjyp2ivnpbfpqmwdcqxfyjj1s9srmfikdhjjh7a91353"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--release" "--"
+                            "--skip=std_tests::test_set_len_invalid")
+       #:cargo-inputs (("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-serde-test" ,rust-serde-test-1))))
+    (home-page "https://github.com/gankra/thin-vec";)
+    (synopsis "Vec that takes up less space on the stack")
+    (description
+     "This package provides a vec that takes up less space on the stack.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-thiserror-1
   (package
     (name "rust-thiserror")



reply via email to

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