diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-10-02 08:10:48 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-10-18 11:36:01 +0300 |
commit | e7bf18b2cfb6532d345a09e6db5bd3ffbdf6cde4 (patch) | |
tree | 8376bf0ddbaa0580f734f2988d9709e8304149e1 /gnu/packages/crates-io.scm | |
parent | e903a207e024b00650e5d449a57f58bc7ae59172 (diff) | |
download | guix-e7bf18b2cfb6532d345a09e6db5bd3ffbdf6cde4.tar.gz guix-e7bf18b2cfb6532d345a09e6db5bd3ffbdf6cde4.zip |
gnu: Add rust-tokio-macros-2.
* gnu/packages/crates-io.scm (rust-tokio-macros-2): New variable.
(rust-tokio-macros-1): Inherit from rust-tokio-macros-2.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r-- | gnu/packages/crates-io.scm | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 630f3e3d0b..fb0ca61e06 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -71480,30 +71480,51 @@ futures efficiently") operations.") (license (list license:expat license:asl2.0)))) -(define-public rust-tokio-macros-1 +(define-public rust-tokio-macros-2 (package (name "rust-tokio-macros") - (version "1.7.0") + (version "2.1.0") (source (origin (method url-fetch) (uri (crate-uri "tokio-macros" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 - "1ds34qsfvgf63cjgdx3gr4pl7i76fifyar15ksbillcc8hpzfmxm")))) + (base32 "0pk7y9dfanab886iaqwcbri39jkw33kgl7y07v0kg1pp8prdq2v3")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t + `(#:cargo-test-flags '("--release" "--lib") #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-1)))) + ("rust-syn" ,rust-syn-2)) + #:cargo-development-inputs + (("rust-tokio" ,rust-tokio-1)))) (home-page "https://tokio.rs") (synopsis "Tokio's proc macros") (description "This package provides Tokio's proc macros.") (license license:expat))) +(define-public rust-tokio-macros-1 + (package + (inherit rust-tokio-macros-2) + (name "rust-tokio-macros") + (version "1.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "tokio-macros" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1ds34qsfvgf63cjgdx3gr4pl7i76fifyar15ksbillcc8hpzfmxm")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)))))) + (define-public rust-tokio-macros-0.3 (package (inherit rust-tokio-macros-1) |