From 9231b43c3552bb38c5af34c7b2d35272b8b2935d Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 27 Dec 2021 18:54:04 +0100 Subject: gnu: Add rust-atomic-polyfill-0.1. * gnu/packages/crates-io.scm (rust-atomic-polyfill-0.1): New variable. --- gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index d71219b2ab..0afe848156 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -4199,6 +4199,29 @@ methods.") (description "This package provides a safe abstraction around AtomicPtr.") (license license:asl2.0))) +(define-public rust-atomic-polyfill-0.1 + (package + (name "rust-atomic-polyfill") + (version "0.1.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "atomic-polyfill" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0hk08pdp6dgxqhy05l75518svrrrm7c1shfn51dk4claad4dg1p6")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-critical-section" ,rust-critical-section-0.2) + ("rust-riscv-target" ,rust-riscv-target-0.1)))) + (home-page "https://github.com/embassy-rs/atomic-polyfill") + (synopsis "Atomic polyfills, for targets where they're not available") + (description "This package provides atomic polyfills, for targets where +they're not available.") + (license (list license:expat license:asl2.0)))) + (define-public rust-atomic-waker-1 (package (name "rust-atomic-waker") -- cgit 1.4.1