Subject: [PATCH 56/91] gnu: Add rust-raw-sync-0.1.

From: Sergio Pastor Pérez <[email-masked]>
Date: Tue, 28 Nov 2023 22:12:34 +0100

* gnu/packages/crates-io.scm (rust-raw-sync-0.1): New variable.

Change-Id: I180a523afe6eb84ad6811da207851542f08e9d82
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3a1279a49d..0ac92014f0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -57169,6 +57169,29 @@ (define-public rust-raw-cpuid-8
         ("rust-libc" ,rust-libc-0.2)
         ("rust-rustversion" ,rust-rustversion-0.1))))))
 
+(define-public rust-raw-sync-0.1
+  (package
+    (name "rust-raw-sync")
+    (version "0.1.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "raw_sync" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1k48aq0xgdgh2zq5mzj44rk136jn0111d584qx8hm60zavivsd1a"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-0.1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-nix" ,rust-nix-0.26)
+                       ("rust-rand" ,rust-rand-0.8)
+                       ("rust-winapi" ,rust-winapi-0.3))))
+    (home-page "https://github.com/elast0ny/raw_sync-rs")
+    (synopsis "Lightweight wrapper around OS synchronization primitives")
+    (description "Lightweight wrapper around OS synchronization primitives")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-rawpointer-0.2
   (package
     (name "rust-rawpointer")
-- 
2.41.0