[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 20/86] gnu: Add rust-cfg-if.
From: |
ng0 |
Subject: |
[PATCH 20/86] gnu: Add rust-cfg-if. |
Date: |
Tue, 3 Jan 2017 23:35:36 +0000 |
* gnu/packages/rust.scm (rust-cfg-if): New variable.
---
gnu/packages/rust.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 910f296b6..365ab4ed4 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -682,3 +682,26 @@ per-object thread-local storage, unlike the standard
library's
@code{thread_local!} macro which only allows static thread-local
storage.")
(license (list license:asl2.0 license:expat))))
+
+(define-public rust-cfg-if
+ (package
+ (name "rust-cfg-if")
+ (version "0.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "cfg-if" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "137qikjcal4h75frzcn6mknygqk8vy5bva7w851aydb5gc6pc7ny"))))
+ (build-system cargo-build-system)
+ (home-page "https://github.com/alexcrichton/cfg-if")
+ (synopsis
+ "Ergonomically define an item depending on a large number of
@code{#[cfg]} parameters")
+ (description
+ "Cfg-if provides a macro to ergonomically define an item depending
+on a large number of @code{#[cfg]} parameters. Structured like an
+if-else chain, the first matching branch is the item that gets emitted.")
+ (license (list license:expat license:asl2.0))))
--
2.11.0
- Re: [PATCH 06/86] gnu: Add rust-log., (continued)
- [PATCH 15/86] gnu: Add rust-scoped-tls., ng0, 2017/01/03
- [PATCH 21/86] gnu: Add rust-net2., ng0, 2017/01/03
- [PATCH 17/86] gnu: Add rust-unreachable., ng0, 2017/01/03
- [PATCH 16/86] gnu: Add rust-bitflags., ng0, 2017/01/03
- [PATCH 19/86] gnu: Add rust-thread-local., ng0, 2017/01/03
- [PATCH 18/86] gnu: Add rust-thread-id., ng0, 2017/01/03
- [PATCH 24/86] gnu: Add rust-pkg-config., ng0, 2017/01/03
- [PATCH 23/86] gnu: Add rust-openssl-probe., ng0, 2017/01/03
- [PATCH 30/86] gnu: Add rust-getopts., ng0, 2017/01/03
- [PATCH 20/86] gnu: Add rust-cfg-if.,
ng0 <=
- [PATCH 27/86] gnu: Add rust-num-iter., ng0, 2017/01/03
- [PATCH 29/86] gnu: Add rust-matches., ng0, 2017/01/03
- [PATCH 25/86] gnu: Add rust-num-traits., ng0, 2017/01/03
- [PATCH 26/86] gnu: Add rust-num-integer., ng0, 2017/01/03
- [PATCH 22/86] gnu: Add rust-bytes., ng0, 2017/01/03
- [PATCH 32/86] gnu: Add rust-encoding-index-japanese., ng0, 2017/01/03
- [PATCH 33/86] gnu: Add rust-encoding-index-korean., ng0, 2017/01/03
- [PATCH 36/86] gnu: Add rust-encoding-index-tradchinese., ng0, 2017/01/03
- [PATCH 39/86] gnu: Add rust-clippy-mini-macro-test., ng0, 2017/01/03
- [PATCH 35/86] gnu: Add rust-encoding-index-singlebyte., ng0, 2017/01/03