From 9d5abdc8b75489d07e0c79b6436d19d942e25531 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 25 Oct 2023 09:52:17 +0300 Subject: [PATCH] gnu: Add rust-actix-macros-0.2. * gnu/packages/crates-io.scm (rust-actix-macros-0.2): New variable. (rust-actix-macros-0.1): Inherit from rust-actix-macros-0.2. Change-Id: I7e77ff1258f2b00e52c5936559487f84d8852911 --- gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 077e804bec..b5a8de5c34 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -866,8 +866,30 @@ during testing.") ("rust-tokio-tcp" ,rust-tokio-tcp-0.1) ("rust-tokio-timer" ,rust-tokio-timer-0.2)))))) +(define-public rust-actix-macros-0.2 + (package + (name "rust-actix-macros") + (version "0.2.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "actix-macros" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1jsmhq9k5nsms8sci2lqkihym5nrhlpfv8dgd0n4539g1cad67p0")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; use of undeclared crate or module `rustversion` + #:cargo-inputs (("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-2)))) + (home-page "https://actix.rs") + (synopsis "Actix runtime macros") + (description "This package provides Actix runtime macros.") + (license (list license:expat license:asl2.0)))) + (define-public rust-actix-macros-0.1 (package + (inherit rust-actix-macros-0.2) (name "rust-actix-macros") (version "0.1.3") (source @@ -877,7 +899,6 @@ during testing.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0mfnprr8gy1gb5xcr18iwsv781hysvh7sr5xxg6ghyi61gh8rjml")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-quote" ,rust-quote-1) @@ -885,11 +906,7 @@ during testing.") #:cargo-development-inputs (("rust-actix-rt" ,rust-actix-rt-1) ("rust-futures-util" ,rust-futures-util-0.3) - ("rust-trybuild" ,rust-trybuild-1)))) - (home-page "https://actix.rs") - (synopsis "Actix runtime macros") - (description "This package provides Actix runtime macros.") - (license (list license:expat license:asl2.0)))) + ("rust-trybuild" ,rust-trybuild-1)))))) (define-public rust-actix-router-0.2 (package