Subject: [bug#69257] [PATCH 029/228] gnu: Add rust-readlock-tokio-0.1.

From: Herman Rimm <[email-masked]>
Date: Sun, 18 Feb 2024 22:02:27 +0100

* gnu/packages/crates-io.scm (rust-readlock-tokio-0.1): Add variable.

Change-Id: Ic55945c3d2b7c69c6940b6a5607e2e7241f96a88
---
 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 b2cd3a7c9d..5e2af7f03a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -53946,6 +53946,29 @@ (define-public rust-readlock-0.1
      "This package provides a weird alternative to @code{Arc<RwLock<T>>}.")
     (license license:mpl2.0)))
 
+(define-public rust-readlock-tokio-0.1
+  (package
+    (name "rust-readlock-tokio")
+    (version "0.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "readlock-tokio" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1zc356rp6x0imb4rq2jyq238lv065h4gnyr7zsh3c6aj0s4kd8zv"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-rclite" ,rust-rclite-0.2)
+                       ("rust-tokio" ,rust-tokio-1))
+       #:cargo-development-inputs (("rust-tokio" ,rust-tokio-1))))
+    (home-page "https://github.com/jplatte/readlock")
+    (synopsis "Weird alternative to Arc<RwLock<T>> using tokio's RwLock")
+    (description
+     "This package provides a weird alternative to Arc<@code{RwLock<T>>},
+using tokio's @code{RwLock}")
+    (license license:mpl2.0)))
+
 (define-public rust-recycler-0.1
   (package
     (name "rust-recycler")
-- 
2.41.0