Subject: [bug#69257] [PATCH 215/228] gnu: Add rust-async-compat-0.2.

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

* gnu/packages/crates-io.scm (rust-async-compat-0.2): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1f638fa96b..083f08b0f6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4115,6 +4115,36 @@ (define-public rust-async-channel-1
        (("rust-easy-parallel" ,rust-easy-parallel-3)
         ("rust-futures-lite" ,rust-futures-lite-1))))))
 
+(define-public rust-async-compat-0.2
+  (package
+    (name "rust-async-compat")
+    (version "0.2.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "async-compat" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "06s625ydwms36y4sn723mwq7s4bba2gmp9pq0y65s2gb3xy712pn"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-futures-core" ,rust-futures-core-0.3)
+                       ("rust-futures-io" ,rust-futures-io-0.3)
+                       ("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-pin-project-lite" ,rust-pin-project-lite-0.2)
+                       ("rust-tokio" ,rust-tokio-1))
+       #:cargo-development-inputs (("rust-blocking" ,rust-blocking-1)
+                                   ("rust-futures" ,rust-futures-0.3)
+                                   ("rust-reqwest" ,rust-reqwest-0.11)
+                                   ("rust-tokio" ,rust-tokio-1)
+                                   ("rust-warp" ,rust-warp-0.3))))
+    (home-page "https://github.com/smol-rs/async-compat")
+    (synopsis "Compatibility adapter between tokio and futures")
+    (description
+      "This package provides compatibility adapter between tokio and
+futures.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-async-compression-0.4
   (package
     (name "rust-async-compression")
-- 
2.41.0