Subject: [PATCH 10/21] gnu: Add rust-adaptive-barrier-0.1.

From: aecepoglu <[email-masked]>
Date: Thu, 4 Feb 2021 14:38:17 +0300

* gnu/packages/crates-io.scm (rust-adaptive-barrier-0.1): New variable.
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a5da6a84e8..8ebff4901b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -758,6 +758,32 @@ Rust.")
     (description "This package provides Actix web proc macros.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-adaptive-barrier-0.1
+  (package
+    (name "rust-adaptive-barrier")
+    (version "0.1.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "adaptive-barrier" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "003ygsiqsd85v0p846q1ym23dbp4iagn89p7k6yrvbg9di1mbjqc"))))
+    (build-system cargo-build-system)
+    (arguments `(#:skip-build? #t))
+    (home-page "")
+    (synopsis
+      "Barrier with adaptable number of thread subsciptions")
+    (description
+      "This is a Barrier synchronization primitive,
+ similar to @code{std::sync::Barrier},
+ but one that adjusts the expected number of threads.
+ This makes it robust in face of panics
+ (it won't make your program deadlock, like the standard @code{Barrier}).")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-addr2line-0.11
   (package
     (name "rust-addr2line")
-- 
2.30.0