aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Soo <jsoo1@asu.edu>2019-12-20 08:24:23 -0800
committerEfraim Flashner <efraim@flashner.co.il>2020-01-02 20:17:00 +0200
commit215545b7d4302ee54f4d643c9ca8772ad1f240ec (patch)
tree3180a08de78fd26af3fec8579e34d68180d175f7
parent15b17fde21a0a36e3a78ad3d2887bd6fc0fcbfcc (diff)
downloadguix-215545b7d4302ee54f4d643c9ca8772ad1f240ec.tar
guix-215545b7d4302ee54f4d643c9ca8772ad1f240ec.tar.gz
gnu: Add rust-ref-cast-0.2.
* gnu/packages/crates-io.scm (rust-ref-cast-0.2): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r--gnu/packages/crates-io.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8d18cce4b2..797c921c9c 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")