guix-commits
[Top][All Lists]
Advanced

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

259/299: gnu: Add rust-ref-cast-0.2.


From: guix-commits
Subject: 259/299: gnu: Add rust-ref-cast-0.2.
Date: Thu, 2 Jan 2020 13:20:00 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 215545b7d4302ee54f4d643c9ca8772ad1f240ec
Author: John Soo <address@hidden>
Date:   Fri Dec 20 08:24:23 2019 -0800

    gnu: Add rust-ref-cast-0.2.
    
    * gnu/packages/crates-io.scm (rust-ref-cast-0.2): New variable.
    
    Signed-off-by: Efraim Flashner <address@hidden>
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8d18cce..797c921 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -7849,6 +7849,30 @@ system calls.")
     (properties '((hidden? . #t)))
     (license license:expat)))
 
+(define-public rust-ref-cast-0.2
+  (package
+    (name "rust-ref-cast")
+    (version "0.2.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ref-cast" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0jgj1zxaikqm030flpifbp517fy4z21lly6ysbwyciii39bkzcf1"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-ref-cast-impl" ,rust-ref-cast-impl-0.2))))
+    (home-page "https://github.com/dtolnay/ref-cast";)
+    (synopsis "Safely cast &T to &U")
+    (description
+     "Safely cast &T to &U where the struct U contains a single field of type 
T.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-regex-1.1
   (package
     (name "rust-regex")



reply via email to

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