From adc7fc093e26c1cf858a42ef31f4aca3a842d062 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 2 Jun 2021 22:37:04 +0200 Subject: gnu: Add rust-cpufeatures-0.1. * gnu/packages/crates-io.scm (rust-cpufeatures-0.1): New variable. --- gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu') 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") -- cgit 1.4.1