gnu: Add rust-cfg-if-1.
* gnu/packages/crates-io.scm (rust-cfg-if-1): New variable. (rust-cfg-if-0.1): Inherit from above.master
parent
3bc9e0b487
commit
db9a051b4f
|
@ -3742,8 +3742,7 @@ archive to be linked into Rustcode.")
|
||||||
(file-name
|
(file-name
|
||||||
(string-append name "-" version ".tar.gz"))
|
(string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "1za0vb97n4brpzpv8lsbnzmq5r8f2b0cpqqr0sy8h5bn751xxwds"))))
|
||||||
"1za0vb97n4brpzpv8lsbnzmq5r8f2b0cpqqr0sy8h5bn751xxwds"))))
|
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:cargo-inputs
|
`(#:cargo-inputs
|
||||||
|
@ -3751,14 +3750,15 @@ archive to be linked into Rustcode.")
|
||||||
("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))
|
("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))
|
||||||
(home-page "https://github.com/alexcrichton/cfg-if")
|
(home-page "https://github.com/alexcrichton/cfg-if")
|
||||||
(synopsis "Define an item depending on parameters")
|
(synopsis "Define an item depending on parameters")
|
||||||
(description "This package provides a macro to ergonomically define an
|
(description
|
||||||
item depending on a large number of @code{#[cfg]} parameters. Structured like
|
"This package provides a macro to ergonomically define an item depending
|
||||||
an @code{if-else} chain, the first matching branch is the item that gets
|
on a large number of @code{#[cfg]} parameters. Structured like an if-else
|
||||||
emitted.")
|
chain, the first matching branch is the item that gets emitted.")
|
||||||
(license (list license:asl2.0 license:expat))))
|
(license (list license:expat license:asl2.0))))
|
||||||
|
|
||||||
(define-public rust-cfg-if-0.1
|
(define-public rust-cfg-if-0.1
|
||||||
(package
|
(package
|
||||||
|
(inherit rust-cfg-if-1)
|
||||||
(name "rust-cfg-if")
|
(name "rust-cfg-if")
|
||||||
(version "0.1.10")
|
(version "0.1.10")
|
||||||
(source
|
(source
|
||||||
|
@ -3769,18 +3769,10 @@ emitted.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"08h80ihs74jcyp24cd75wwabygbbdgl05k6p5dmq8akbr78vv1a7"))))
|
"08h80ihs74jcyp24cd75wwabygbbdgl05k6p5dmq8akbr78vv1a7"))))
|
||||||
(build-system cargo-build-system)
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:cargo-inputs
|
`(#:cargo-inputs
|
||||||
(("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
|
(("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
|
||||||
("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))
|
("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))))
|
||||||
(home-page "https://github.com/alexcrichton/cfg-if")
|
|
||||||
(synopsis "Define an item depending on parameters")
|
|
||||||
(description "This package provides a macro to ergonomically define an item
|
|
||||||
depending on a large number of #[cfg] parameters. Structured like an
|
|
||||||
@code{if-else} chain, the first matching branch is the item that gets emitted.")
|
|
||||||
(license (list license:asl2.0
|
|
||||||
license:expat))))
|
|
||||||
|
|
||||||
(define-public rust-chrono-0.4
|
(define-public rust-chrono-0.4
|
||||||
(package
|
(package
|
||||||
|
|
Reference in New Issue