gnu: Add rust-try-from.

* gnu/packages/crates-io.scm (rust-try-from): New variable.
This commit is contained in:
Efraim Flashner 2019-08-28 16:42:41 +03:00
parent ea1c425569
commit efc244c53b
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 22 additions and 0 deletions

View File

@ -1646,6 +1646,28 @@ fixed set of worker threads.")
(license (list license:asl2.0
license:expat))))
(define-public rust-try-from
(package
(name "rust-try-from")
(version "0.3.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "try_from" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32
"12wdd4ja7047sd3rx70hv2056hyc8gcdllcx3a41g1rnw64kng98"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-cfg-if" ,rust-cfg-if))))
(home-page "https://github.com/derekjw/try_from")
(synopsis "TryFrom and TryInto traits for failable conversions")
(description
"TryFrom and TryInto traits for failable conversions that return a Result.")
(license license:expat)))
(define-public rust-typenum
(package
(name "rust-typenum")