diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-06-02 22:37:04 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-06-03 14:24:32 +0200 |
commit | adc7fc093e26c1cf858a42ef31f4aca3a842d062 (patch) | |
tree | 9092c4cbe1a10fe8ee751c1e984f34e2a9e0c438 /gnu | |
parent | 558db7b6e5e8467d1cd82f598f1f8dc8ad9227f1 (diff) | |
download | guix-adc7fc093e26c1cf858a42ef31f4aca3a842d062.tar.gz |
gnu: Add rust-cpufeatures-0.1.
* gnu/packages/crates-io.scm (rust-cpufeatures-0.1): New variable.
Diffstat (limited to 'gnu')
-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 eecabf4fa0..0a2768aacc 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -8979,6 +8979,29 @@ intrinsics.") (("rust-clap" ,rust-clap-2) ("rust-diff" ,rust-diff-0.1)))))) +(define-public rust-cpufeatures-0.1 + (package + (name "rust-cpufeatures") + (version "0.1.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "cpufeatures" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1j0i97325c2grndsfgnm3lqk0xbyvdl2dbgn8i5dd9yhnmycc07d")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-libc" ,rust-libc-0.2)))) + (home-page "https://github.com/RustCrypto/utils") + (synopsis "Alternative to the @code{is_x86_feature_detected!} macro") + (description + "Cpufeatures is a lightweight and efficient no-std compatible alternative +to the @code{is_x86_feature_detected!} macro.") + (license (list license:expat license:asl2.0)))) + (define-public rust-cpuid-bool-0.1 (package (name "rust-cpuid-bool") |