summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-12-09 23:07:26 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2020-12-30 23:02:45 +0100
commit0f89d63722766dcde70f52c1fd7eba38f978978b (patch)
tree46af1818bb19551129cfe47977da966d59681f09 /gnu
parent0989959ce40e6b2ac83dfdfa2f0ad5f4849779d2 (diff)
gnu: Add rust-tokio-0.3 and rust-tokio-test-0.3.
* gnu/packages/crates-io.scm (rust-tokio-0.3): New variable. (rust-tokio-0.2): Inherit from above. (rust-tokio-test-0.3): New variable. (rust-tokio-test-0.2): Inherit from above.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm98
1 files changed, 79 insertions, 19 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d841133f71..126f2f1ce0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31515,8 +31515,52 @@ crate.")
"A 100% safe crate of vec-like types.")
(license (list license:zlib license:asl2.0 license:expat))))
+(define-public rust-tokio-0.3
+ (package
+ (name "rust-tokio")
+ (version "0.3.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "tokio" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0lj26zy5k1dbln0599bn918z5j16wz5iyzs8cjz33hp2ksrkwam1"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ;FIXME: fail due to unresolved imports
+ #:cargo-inputs
+ (("rust-autocfg" ,rust-autocfg-1.0)
+ ("rust-bytes" ,rust-bytes-0.6)
+ ("rust-futures-core" ,rust-futures-core-0.3)
+ ("rust-lazy-static" ,rust-lazy-static-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-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-slab" ,rust-slab-0.4)
+ ("rust-tokio-macros" ,rust-tokio-macros-0.3)
+ ("rust-tracing" ,rust-tracing-0.1)
+ ("rust-winapi" ,rust-winapi-0.3))
+ #:cargo-development-inputs
+ (("rust-futures" ,rust-futures-0.3)
+ ("rust-loom" ,rust-loom-0.3)
+ ("rust-nix" ,rust-nix-0.19)
+ ("rust-proptest" ,rust-proptest-0.10)
+ ("rust-tokio-test" ,rust-tokio-test-0.3))))
+ (home-page "https://tokio.rs")
+ (synopsis "Event-driven, non-blocking I/O platform")
+ (description
+ "This package provides an event-driven, non-blocking I/O platform for
+writing asynchronous I/O backed applications.")
+ (license license:expat)))
+
(define-public rust-tokio-0.2
(package
+ (inherit rust-tokio-0.3)
(name "rust-tokio")
(version "0.2.21")
(source
@@ -31526,7 +31570,6 @@ crate.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0n1dxsjv9fxv3kmr3nh4n8v8pqckwgdlls942msysavhp4kzm6fh"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
@@ -31547,18 +31590,12 @@ crate.")
("rust-slab" ,rust-slab-0.4)
("rust-tokio-macros" ,rust-tokio-macros-0.2)
("rust-winapi" ,rust-winapi-0.3))
- #:cargo-development-inputs
- (("rust-futures" ,rust-futures-0.3)
- ("rust-loom" ,rust-loom-0.3)
- ("rust-proptest" ,rust-proptest-0.9)
- ("rust-tempfile" ,rust-tempfile-3)
- ("rust-tokio-test" ,rust-tokio-test-0.2))))
- (home-page "https://tokio.rs")
- (synopsis "Event-driven, non-blocking I/O platform")
- (description
- "An event-driven, non-blocking I/O platform for writing asynchronous I/O
-backed applications.")
- (license license:expat)))
+ #:cargo-development-inputs
+ (("rust-futures" ,rust-futures-0.3)
+ ("rust-loom" ,rust-loom-0.3)
+ ("rust-proptest" ,rust-proptest-0.9)
+ ("rust-tempfile" ,rust-tempfile-3)
+ ("rust-tokio-test" ,rust-tokio-test-0.2))))))
(define-public rust-tokio-0.1
(package
@@ -32408,31 +32445,54 @@ Rust.")
("rust-tokio" ,rust-tokio-0.1)
("rust-tokio-mock-task" ,rust-tokio-mock-task-0.1))))))
-(define-public rust-tokio-test-0.2
+(define-public rust-tokio-test-0.3
(package
(name "rust-tokio-test")
- (version "0.2.1")
+ (version "0.3.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "tokio-test" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0v81p2n853b1kzyla3dbfmnazirn6s3n8p3z8k20bmdn370lj07d"))))
+ (base32 "06nzdkjsxr16pbr5m80zm3vcr8dhcl9amjgb9l9vj4x72cmmmp3y"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-bytes" ,rust-bytes-0.5)
("rust-futures-core" ,rust-futures-core-0.3)
- ("rust-tokio" ,rust-tokio-0.2))
+ ("rust-tokio" ,rust-tokio-0.3))
#:cargo-development-inputs
(("rust-futures-util" ,rust-futures-util-0.3)
- ("rust-tokio" ,rust-tokio-0.2))))
+ ("rust-tokio" ,rust-tokio-0.3))))
(home-page "https://tokio.rs")
(synopsis "Testing utilities for Tokio- and futures-based code")
- (description "Testing utilities for Tokio- and futures-based code")
+ (description
+ "This package provides testing utilities for Tokio- and futures-based
+code.")
(license license:expat)))
+(define-public rust-tokio-test-0.2
+ (package
+ (inherit rust-tokio-test-0.3)
+ (name "rust-tokio-test")
+ (version "0.2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "tokio-test" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0v81p2n853b1kzyla3dbfmnazirn6s3n8p3z8k20bmdn370lj07d"))))
+ (arguments
+ `(#:cargo-inputs
+ (("rust-bytes" ,rust-bytes-0.5)
+ ("rust-futures-core" ,rust-futures-core-0.3)
+ ("rust-tokio" ,rust-tokio-0.2))
+ #:cargo-development-inputs
+ (("rust-futures-util" ,rust-futures-util-0.3)
+ ("rust-tokio" ,rust-tokio-0.2))))))
+
(define-public rust-tokio-tcp-0.1
(package
(name "rust-tokio-tcp")