Subject: [PATCH 48/49] gnu: Add rust-tokio.

From: Danny Milosavljevic <[email-masked]>
Date: Thu, 22 Apr 2021 12:22:07 +0200

* gnu/packages/crates-io.scm (rust-tokio-1.5): New variable.
---
 gnu/packages/crates-io.scm | 53 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 86cc797b01..897bfcd4a5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51432,3 +51432,56 @@ configuration file and/or environment variables.")
     (description
       "Permutation testing for concurrent code")
     (license license:expat)))
+
+(define-public rust-tokio-1.5
+  (package
+    (name "rust-tokio")
+    (version "1.5.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "tokio" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "199pf7dy992rjpxygrj6790pzbyhhzvvlm9hcq5vbnmdq3kwiw43"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:cargo-inputs
+        (("rust-autocfg" ,rust-autocfg-1)
+         ("rust-bytes" ,rust-bytes-1)
+         ("rust-libc" ,rust-libc-0.2)
+         ("rust-memchr" ,rust-memchr-2)
+         ("rust-mio" ,rust-mio-0.7)
+         ("rust-num-cpus" ,rust-num-cpus-1)
+         ("rust-once-cell" ,rust-once-cell-1)
+         ("rust-parking-lot" ,rust-parking-lot-0.11)
+         ("rust-pin-project-lite"
+          ,rust-pin-project-lite-0.2)
+         ("rust-signal-hook-registry"
+          ,rust-signal-hook-registry-1)
+         ("rust-tokio-macros" ,rust-tokio-macros-1)
+         ("rust-tracing" ,rust-tracing-0.1)
+         ("rust-winapi" ,rust-winapi-0.3))
+        #:cargo-development-inputs
+        (("rust-async-stream" ,rust-async-stream-0.3)
+         ("rust-futures" ,rust-futures-0.3)
+         ("rust-libc" ,rust-libc-0.2)
+         ("rust-loom" ,rust-loom-0.5)
+         ("rust-nix" ,rust-nix-0.19)
+         ("rust-proptest" ,rust-proptest-1)
+         ("rust-rand" ,rust-rand-0.8)
+         ("rust-tempfile" ,rust-tempfile-3)
+         ("rust-tokio-stream" ,rust-tokio-stream-0.1)
+         ("rust-tokio-test" ,rust-tokio-test-0.4))))
+    (home-page "https://tokio.rs")
+    (synopsis
+      "An event-driven, non-blocking I/O platform for writing asynchronous I/O
+backed applications.
+")
+    (description
+      "An event-driven, non-blocking I/O platform for writing asynchronous I/O
+backed applications.
+")
+    (license license:expat)))
-- 
2.29.2