diff mbox series

[bug#47948,48/49] gnu: Add rust-tokio.

Message ID 20210422102208.1154-48-dannym@scratchpost.org
State New
Headers show
Series [bug#47948,01/49] gnu: rust-byteorder: Update to 1.4.3. | expand

Commit Message

Danny Milosavljevic April 22, 2021, 10:22 a.m. UTC
* gnu/packages/crates-io.scm (rust-tokio-1.5): New variable.
---
 gnu/packages/crates-io.scm | 53 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Comments

Nicolas Goaziou April 23, 2021, 8:28 a.m. UTC | #1
Hello,

Danny Milosavljevic <dannym@scratchpost.org> writes:

> * gnu/packages/crates-io.scm (rust-tokio-1.5): New variable.

There's already a rust-tokio-1 variable, referring to 1.2.0 version.
I think this should be updated instead.

Regards,
diff mbox series

Patch

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)))