mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-04 18:38:57 -05:00
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:
parent
15b17fde21
commit
215545b7d4
1 changed files with 24 additions and 0 deletions
|
@ -7849,6 +7849,30 @@ (define-public rust-redox-termios-0.1
|
||||||
(properties '((hidden? . #t)))
|
(properties '((hidden? . #t)))
|
||||||
(license license:expat)))
|
(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
|
(define-public rust-regex-1.1
|
||||||
(package
|
(package
|
||||||
(name "rust-regex")
|
(name "rust-regex")
|
||||||
|
|
Loading…
Reference in a new issue