Subject: [PATCH 23/64] gnu: Add rust-ringbuf-0.2.

From: Steve George <[email-masked]>
Date: Mon, 23 Oct 2023 23:21:08 +0100

* gnu/packages/crates-io.scm (rust-ringbuf-0.2): New variable.
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ac5042d204..5bba947109 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -57831,6 +57831,28 @@ (define-public rust-ring-0.13
                  (lambda _
                    (invoke "python" "make_curve25519_tables.py")))))))))))
 
+(define-public rust-ringbuf-0.2
+  (package
+    (name "rust-ringbuf")
+    (version "0.2.8")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "ringbuf" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "18n2qmbvvxj9s775p6q2dv5s68ndbpvb7fr3mx5fg2gpa26z2npn"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:cargo-inputs `(("rust-cache-padded" ,rust-cache-padded-1))))
+    (home-page "https://github.com/agerasev/ringbuf")
+    (synopsis
+     "Lock-free SPSC FIFO ring buffer with direct access to inner data")
+    (description
+     "Lock-free SPSC (Single Producer, Single Consumer)
+FIFO (First In, First Out) ring buffer with direct access to inner data.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-ripemd-0.1
   (package
     (name "rust-ripemd")
-- 
2.41.0