diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-11-10 17:39:10 +0000 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-11-11 15:39:14 +0000 |
commit | 4ef9ef0aa3756d53e9848132c2b525d3d5bdaec1 (patch) | |
tree | 28a5913badc1ee1303eeb6281f2c86a227921d45 /gnu | |
parent | 6a4b4d3c1d73191964bfd5ec7bcc5a855a83e5c7 (diff) | |
download | guix-4ef9ef0aa3756d53e9848132c2b525d3d5bdaec1.tar guix-4ef9ef0aa3756d53e9848132c2b525d3d5bdaec1.tar.gz |
gnu: Add rust-feature-probe-0.1.
* gnu/packages/crates-io.scm (rust-feature-probe-0.1): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 2059062e97..ecf7eadbc7 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -17482,6 +17482,28 @@ it.") descriptors limit.") (license license:asl2.0))) +(define-public rust-feature-probe-0.1 + (package + (name "rust-feature-probe") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "feature-probe" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1nhif9zpr2f17gagf0qb0v914wc3jr9sfjzvnpi7b7pcs73ksnl3")))) + (build-system cargo-build-system) + (home-page "https://github.com/tov/feature-probe-rs") + (synopsis "Probe for rustc features from build.rs") + (description "To support multiple versions of Rust, it's often necessary +to conditionally compile parts of our libraries or programs. It's possible to +allow users to specify what features to enable, but detection is better, +because users get all the features that their version of Rust supports. And +while we could check the rustc version, it's better to probe for individual +features. This package probes for rustc features from build.rs.") + (license (list license:expat license:asl2.0)))) + (define-public rust-feed-rs-0.6 (package (name "rust-feed-rs") |