diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-02-09 11:54:36 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-02-13 11:49:43 +0100 |
commit | b86e9df4cecb11fc1d1c6c3dd39fec5b7a2aacc6 (patch) | |
tree | 887089ded126904cf2cfb4af665e2e537dfd2f37 | |
parent | eaa8d300fec7c6f694ded97132acae463761e6e9 (diff) | |
download | guix-b86e9df4cecb11fc1d1c6c3dd39fec5b7a2aacc6.tar.gz guix-b86e9df4cecb11fc1d1c6c3dd39fec5b7a2aacc6.zip |
gnu: Add rust-futures-timer-3.
* gnu/packages/crates-io.scm (rust-futures-timer-3): New variable.
(rust-futures-timer-1): Inherit from above.
-rw-r--r-- | gnu/packages/crates-io.scm | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index ff2c3bfbfe..11083f4315 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -13691,29 +13691,48 @@ futures-rs library.") components built off futures-rs.") (license (list license:expat license:asl2.0)))) -(define-public rust-futures-timer-1 +(define-public rust-futures-timer-3 (package (name "rust-futures-timer") - (version "1.0.3") + (version "3.0.2") (source (origin (method url-fetch) (uri (crate-uri "futures-timer" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "0idyz2k72jbl9z0wj48n15wjv6qgxgsgvs6k8lrhkzr9jj728ikr")))) + (base32 "0b5v7lk9838ix6jdcrainsyrh7xrf24pwm61dp13907qkn806jz6")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #true + `(#:skip-build? #t #:cargo-inputs - (("rust-futures-core-preview" ,rust-futures-core-preview-0.3) - ("rust-pin-utils" ,rust-pin-utils-0.1)))) + (("rust-gloo-timers" ,rust-gloo-timers-0.2) + ("rust-send-wrapper" ,rust-send-wrapper-0.4)))) (home-page "https://github.com/async-rs/futures-timer") (synopsis "Timeouts for futures") (description "This package is a general purpose crate for working with timeouts and delays with futures.") (license (list license:expat license:asl2.0)))) +(define-public rust-futures-timer-1 + (package + (inherit rust-futures-timer-3) + (name "rust-futures-timer") + (version "1.0.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "futures-timer" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0idyz2k72jbl9z0wj48n15wjv6qgxgsgvs6k8lrhkzr9jj728ikr")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #true + #:cargo-inputs + (("rust-futures-core-preview" ,rust-futures-core-preview-0.3) + ("rust-pin-utils" ,rust-pin-utils-0.1)))))) + (define-public rust-futures-timer-0.1 (package (inherit rust-futures-timer-1) |