guix-commits
[Top][All Lists]
Advanced

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

67/188: gnu: Add rust-as-slice-0.1.


From: guix-commits
Subject: 67/188: gnu: Add rust-as-slice-0.1.
Date: Mon, 12 Oct 2020 02:24:55 -0400 (EDT)

arunisaac pushed a commit to branch master
in repository guix.

commit 4c1384c576a77a73ac1a4b88c96b97b0873cf909
Author: Arun Isaac <arunisaac@systemreboot.net>
AuthorDate: Thu Sep 17 11:28:28 2020 +0530

    gnu: Add rust-as-slice-0.1.
    
    * gnu/packages/crates-io.scm (rust-as-slice-0.1): New variable.
---
 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 ed6cab9..16d7670 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -730,6 +730,29 @@ ArrayVec and ArrayString.")
         ("rust-matches" ,rust-matches-0.1)
         ("rust-serde-test" ,rust-serde-test-1))))))
 
+(define-public rust-as-slice-0.1
+  (package
+    (name "rust-as-slice")
+    (version "0.1.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "as-slice" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0w0f56lnd9l6369jh6iv1qb08zl1lqa4y017x1gcharvq1dvdprp"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-generic-array" ,rust-generic-array-0.12)
+        ("rust-stable-deref-trait" ,rust-stable-deref-trait-1))))
+    (home-page "https://github.com/japaric/as-slice";)
+    (synopsis "AsSlice and AsMutSlice traits")
+    (description "This package provides @code{AsSlice} and @code{AsMutSlice}
+traits.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-ascii-1.0
   (package
     (name "rust-ascii")



reply via email to

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