Subject: [bug#75127] [PATCH v4 19/57] gnu: Add rust-async-scoped-0.9.

From: Jordan Moore <[email-masked]>
Date: Sat, 4 Jan 2025 23:19:42 -0500

* gnu/packages/crates-io.scm (rust-async-scoped-0.9): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 950332ca2f..2a48f56d2e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5316,6 +5316,30 @@ (define-public rust-async-recursion-1
     (description "This package provides recursion for async functions in Rust.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-async-scoped-0.9
+  (package
+    (name "rust-async-scoped")
+    (version "0.9.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "async-scoped" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0h47p4is1i5bvsy1i5mdlk521cdjznclxwgfab2gzvckln70fhj0"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-async-std" ,rust-async-std-1)
+                       ("rust-futures" ,rust-futures-0.3)
+                       ("rust-pin-project" ,rust-pin-project-1)
+                       ("rust-tokio" ,rust-tokio-1))))
+    (home-page "https://github.com/rmanoka/async-scoped")
+    (synopsis
+     "Spawn scoped (non 'static) asynchronous futures for async_std and tokio runtimes")
+    (description "This package provides Spawn scoped (non static) asynchronous futures
+for async_std and tokio runtimes.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-async-session-3
   (package
     (name "rust-async-session")
-- 
2.46.0