gnu: Add rust-snafu-0.8.

* gnu/packages/crates-io.scm (rust-snafu-0.8): New variable.
(rust-snafu-0.7): Inherit from rust-snafu-0.8.

Change-Id: Ia52887b1a7ce12197bfc100326d0c687f96d5470
This commit is contained in:
Efraim Flashner 2024-01-29 10:12:01 +02:00
parent a2a1142385
commit d28696eaad
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -60916,8 +60916,39 @@ package provides derive macros.")
("rust-quote" ,rust-quote-1)
("rust-syn" ,rust-syn-1))))))
(define-public rust-snafu-0.8
(package
(name "rust-snafu")
(version "0.8.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "snafu" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "15ph0zr3zw6lh4cw0s0k1wvcvi18bmrzvjbx1l9jjh7560bwahnk"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-test-flags
'("--release" "--"
"--skip=backtrace_contains_function_names"
"--skip=delegation::backtrace_comes_from_delegated_error"
"--skip=delegation::backtrace_comes_from_renamed_delegated_error"
"--skip=whatever_nested::backtrace_method_delegates_to_nested_whatever"
"--skip=has_a_backtrace")
#:cargo-inputs (("rust-backtrace" ,rust-backtrace-0.3)
("rust-futures" ,rust-futures-0.3)
("rust-futures-core" ,rust-futures-core-0.3)
("rust-pin-project" ,rust-pin-project-1)
("rust-snafu-derive" ,rust-snafu-derive-0.8))))
(home-page "https://github.com/shepmaster/snafu")
(synopsis "Ergonomic error handling library")
(description "Snafu aims to be an ergonomic error handling library.")
(license (list license:expat license:asl2.0))))
(define-public rust-snafu-0.7
(package
(inherit rust-snafu-0.8)
(name "rust-snafu")
(version "0.7.5")
(source (origin
@ -60927,7 +60958,6 @@ package provides derive macros.")
(sha256
(base32
"1mj2j2gfbf8mm1hr02zrbrqrh2zp01f61xgkx0lpln2w0ankgpp4"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-backtrace" ,rust-backtrace-0.3)
@ -60935,11 +60965,7 @@ package provides derive macros.")
("rust-futures" ,rust-futures-0.3)
("rust-futures-core" ,rust-futures-core-0.3)
("rust-pin-project" ,rust-pin-project-1)
("rust-snafu-derive" ,rust-snafu-derive-0.7))))
(home-page "https://github.com/shepmaster/snafu")
(synopsis "Ergonomic error handling library")
(description "Snafu aims to be an ergonomic error handling library.")
(license (list license:expat license:asl2.0))))
("rust-snafu-derive" ,rust-snafu-derive-0.7))))))
(define-public rust-snap-1
(package