* gnu/packages/rust.scm (rust-spin): New variable.
---
gnu/packages/rust.scm | 22 ++
1 file changed, 22 insertions(+)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 2137ba601..b0ac22a78 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -286,3 +286,25 @@ safety and thread safety guarantees.")
"Libc provides a library for types and bindings to native
C functions often found in libc or other common platform libraries.")
(license (list license:expat license:asl2.0
+
+(define-public rust-spin
+ (package
+(name "rust-spin")
+(version "0.4.5")
+(source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "spin" version))
+ (file-name
+(string-append name "-" version ".tar.gz"))
+ (sha256
+(base32
+ "0lvyyxg646wl67b41655p2z25s725sw1rsfvpnm8d7vq5dpa45hx"
+(build-system cargo-build-system)
+(home-page "https://github.com/mvdnes/spin-rs.git";)
+(synopsis "Spin is a library which implements a simple spinlock")
+(description
+ "Synchronization primitives based on spinning. They may contain
+data, they are usable without `std` and static initializers are
+available.")
+(license license:expat)))
--
2.11.0