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>
This commit is contained in:
John Soo 2019-12-20 08:24:23 -08:00 committed by Efraim Flashner
parent 15b17fde21
commit 215545b7d4
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -7849,6 +7849,30 @@ (define-public rust-redox-termios-0.1
(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")