[bug#75127,v7,19/44] gnu: Add rust-async-scoped-0.9.

Message ID 6d88269e0ad549faef074bb03382435b024a1baa.1736607643.git.lockbox@struct.foo
State New
Headers
Series Add cargo-nextest |

Commit Message

Jordan Moore Jan. 11, 2025, 3:11 p.m. UTC
  * gnu/packages/crates-io.scm (rust-async-scoped-0.9): New variable.

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

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 98672b2c31..20145f5e0e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5319,6 +5319,36 @@  (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
+     `(#:phases (modify-phases %standard-phases
+                  ;; compilation errors in test module
+                  (delete 'check))
+       #: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))
+       #:cargo-development-inputs (("rust-femme" ,rust-femme-2)
+                                   ("rust-log" ,rust-log-0.4))))
+    (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")