summary refs log tree commit diff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorSteve George <steve@futurile.net>2023-06-23 17:56:49 +0100
committerEfraim Flashner <efraim@flashner.co.il>2023-10-02 11:40:12 +0300
commita7152f722fdc90345172343bc62f5e596a06e67c (patch)
tree37ea9dc351b2cb476e7134207ebc7db69d3a21a6 /gnu/packages/crates-io.scm
parentf9f292f123274ff8bfb99b67a715e5c819c1b394 (diff)
downloadguix-a7152f722fdc90345172343bc62f5e596a06e67c.tar.gz
gnu: Add rust-maybe-async-0.2.
* gnu/packages/crates-io.scm (rust-maybe-async-0.2): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7d2bd5d984..a175c797da 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -37608,6 +37608,34 @@ parallelize and optimize.")
      `(#:cargo-inputs (("rust-rawpointer" ,rust-rawpointer-0.1))
        #:cargo-development-inputs (("rust-bencher" ,rust-bencher-0.1))))))
 
+(define-public rust-maybe-async-0.2
+  (package
+    (name "rust-maybe-async")
+    (version "0.2.7")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "maybe-async" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "01gksgxmzgl8hvg831vv993fvrwz8hjwgcln99ilp08zrc9qq6qg"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list #:cargo-inputs
+           `(("rust-proc-macro2" ,rust-proc-macro2-1)
+             ("rust-quote" ,rust-quote-1)
+             ("rust-syn" ,rust-syn-1)
+             ("rust-async-std" ,rust-async-std-1)
+             ("rust-async-trait" ,rust-async-trait-0.1)
+             ("rust-tokio" ,rust-tokio-1)
+             ("rust-trybuild" ,rust-trybuild-1))))
+    (home-page "https://github.com/fMeow/maybe-async-rs")
+    (synopsis "Procedural macro to unify sync and async Rust code")
+    (description
+     "This package provides a procedural macro that unifies sync and
+async code in Rust.")
+    (license license:expat)))
+
 (define-public rust-maybe-rayon-0.1
   (package
     (name "rust-maybe-rayon")