gnu: Add rust-anyhow-1.0 and rust-thiserror-1.0.
* gnu/packages/crates-io.scm (rust-anyhow-1.0, rust-thiserror-1.0): New variables. Add them together because they have cyclic dependencies on each other. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
parent
1063dea4ff
commit
64bb237eb8
|
@ -277,6 +277,33 @@ (define-public rust-antidote-1.0
|
||||||
(license (list license:asl2.0
|
(license (list license:asl2.0
|
||||||
license:expat))))
|
license:expat))))
|
||||||
|
|
||||||
|
(define-public rust-anyhow-1.0
|
||||||
|
(package
|
||||||
|
(name "rust-anyhow")
|
||||||
|
(version "1.0.26")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "anyhow" version))
|
||||||
|
(file-name
|
||||||
|
(string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0g6mzcxyj88k8bv8rr3zx4yczgimqvvgr12n14a29sqj6s1zc9bq"))))
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:skip-build? #t
|
||||||
|
#:cargo-development-inputs
|
||||||
|
(("rust-futures" ,rust-futures-0.3)
|
||||||
|
("rust-rustversion" ,rust-rustversion-1.0)
|
||||||
|
("rust-thiserror" ,rust-thiserror-1.0)
|
||||||
|
("rust-trybuild" ,rust-trybuild-1.0))))
|
||||||
|
(home-page "https://github.com/dtolnay/anyhow")
|
||||||
|
(synopsis "Flexible concrete Error type")
|
||||||
|
(description "This package provides a flexible concrete Error type built on
|
||||||
|
@code{std::error::Error}.")
|
||||||
|
(license (list license:expat license:asl2.0))))
|
||||||
|
|
||||||
(define-public rust-approx-0.3
|
(define-public rust-approx-0.3
|
||||||
(package
|
(package
|
||||||
(name "rust-approx")
|
(name "rust-approx")
|
||||||
|
@ -14514,6 +14541,34 @@ (define-public rust-textwrap-0.11
|
||||||
(properties '((hidden? . #t)))
|
(properties '((hidden? . #t)))
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public rust-thiserror-1.0
|
||||||
|
(package
|
||||||
|
(name "rust-thiserror")
|
||||||
|
(version "1.0.9")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "thiserror" version))
|
||||||
|
(file-name
|
||||||
|
(string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0zlp3kzjssl1ndqmn7cipqnyggq4851ghhqj4bfc4fxk2hc7sdbg"))))
|
||||||
|
(build-system cargo-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:skip-build? #t
|
||||||
|
#:cargo-inputs
|
||||||
|
(("rust-thiserror-impl" ,rust-thiserror-impl-1.0))
|
||||||
|
#:cargo-development-inputs
|
||||||
|
(("rust-anyhow" ,rust-anyhow-1.0)
|
||||||
|
("rust-ref-cast" ,rust-ref-cast-1.0)
|
||||||
|
("rust-rustversion" ,rust-rustversion-1.0)
|
||||||
|
("rust-trybuild" ,rust-trybuild-1.0))))
|
||||||
|
(home-page "https://github.com/dtolnay/thiserror")
|
||||||
|
(synopsis "derive(Error)")
|
||||||
|
(description "This package provides @code{derive(Error)} in Rust.")
|
||||||
|
(license (list license:expat license:asl2.0))))
|
||||||
|
|
||||||
(define-public rust-thiserror-impl-1.0
|
(define-public rust-thiserror-impl-1.0
|
||||||
(package
|
(package
|
||||||
(name "rust-thiserror-impl")
|
(name "rust-thiserror-impl")
|
||||||
|
|
Loading…
Reference in a new issue