diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2020-07-09 16:10:55 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-07-09 17:00:30 +0300 |
commit | 73858d169131797bd718f5908b51a1c675a9e226 (patch) | |
tree | 467497a82a981cc6d849d1b91aa19230f5346fa7 | |
parent | 0b5010336f9add621a8b0c825ecb70b01aeccdb4 (diff) | |
download | guix-73858d169131797bd718f5908b51a1c675a9e226.tar.gz |
gnu: Add rust-match-cfg-0.1.
* gnu/packages/crates-io.scm (rust-match-cfg-0.1): New variable.
-rw-r--r-- | gnu/packages/crates-io.scm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index d386d37999..d4623b1c72 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -12744,6 +12744,29 @@ platform-independently.") (base32 "08ayl9aqjnmf7ly1ipy6dk3wjvyfn4w51l40jzh1fh984ykldbzi")))))) +(define-public rust-match-cfg-0.1 + (package + (name "rust-match-cfg") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "match-cfg" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1r5j3zqc3qr8ybcx95bk8q57mkizmgmffj5lmicd4i8d9riyigpz")))) + (build-system cargo-build-system) + (home-page "https://github.com/gnzlbg/match_cfg") + (synopsis + "Define an item depending on a large number of `#[cfg]` parameters") + (description + "This package provides a convenience macro to ergonomically define an item +depending on a large number of @code{#[cfg]} parameters. Structured like match +statement, the first matching branch is the item that gets emitted.") + (license (list license:expat license:asl2.0)))) + (define-public rust-matches-0.1 (package (name "rust-matches") |