[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/44: gnu: Add rust-proc-macro-crate-3.
From: |
guix-commits |
Subject: |
20/44: gnu: Add rust-proc-macro-crate-3. |
Date: |
Mon, 12 Feb 2024 07:40:40 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 93647c1cffdca3e62d4685a15cd4af892971a068
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Tue Jan 30 16:25:05 2024 +0100
gnu: Add rust-proc-macro-crate-3.
* gnu/packages/crates-io.scm (rust-proc-macro-crate-3): Add variable.
(rust-proc-macro-crate-2): Inherit from rust-proc-macro-crate-3.
Change-Id: I69be44ed31c083c3a78c7f41f691b9b435b665f7
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
gnu/packages/crates-io.scm | 39 +++++++++++++++++++++++++++++++--------
1 file changed, 31 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c896e3d136..b0429d9e91 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -48397,8 +48397,38 @@ losslessly as possible.")
priority of an object.")
(license license:expat)))
+(define-public rust-proc-macro-crate-3
+ (package
+ (name "rust-proc-macro-crate")
+ (version "3.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "proc-macro-crate" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "110jcl9vnj92ihbhjqmkp19m8rzxc14a7i60knlmv99qlwfcadvd"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-test-flags '("--release" "--"
+ ;; Not all files included.
+ "--skip=workspace_deps_working")
+ #:cargo-inputs (("rust-toml-edit" ,rust-toml-edit-0.21))
+ #:cargo-development-inputs
+ (("rust-proc-macro2" ,rust-proc-macro2-1)
+ ("rust-quote" ,rust-quote-1)
+ ("rust-syn" ,rust-syn-2))))
+ (home-page "https://github.com/bkchr/proc-macro-crate")
+ (synopsis "Get the name of a (renamed) crate in @file{Cargo.toml}")
+ (description
+ "This crate provides a way to get the name of a crate, even if it
+is renamed in @file{Cargo.toml}.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-proc-macro-crate-2
(package
+ (inherit rust-proc-macro-crate-3)
(name "rust-proc-macro-crate")
(version "2.0.1")
(source
@@ -48413,7 +48443,6 @@ priority of an object.")
'(begin (substitute* "Cargo.toml"
(("\"=([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
(string-append "\"^" version)))))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-test-flags '("--release" "--"
;; Not all files included.
@@ -48422,13 +48451,7 @@ priority of an object.")
("rust-toml-edit" ,rust-toml-edit-0.20))
#:cargo-development-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
("rust-quote" ,rust-quote-1)
- ("rust-syn" ,rust-syn-2))))
- (home-page "https://github.com/bkchr/proc-macro-crate")
- (synopsis "Support for @code{$crate} in procedural macros")
- (description
- "This crate provides a way to get the name of a crate, even if it
-renamed in @file{Cargo.toml}.")
- (license (list license:asl2.0 license:expat))))
+ ("rust-syn" ,rust-syn-2))))))
(define-public rust-proc-macro-crate-1
(package
- 37/44: gnu: Add rust-pandoc-0.8., (continued)
- 37/44: gnu: Add rust-pandoc-0.8., guix-commits, 2024/02/12
- 39/44: gnu: rust-portable-atomic-util-0.1: Update to 0.1.5., guix-commits, 2024/02/12
- 26/44: gnu: Add rust-event-listener-strategy-0.4., guix-commits, 2024/02/12
- 24/44: gnu: Add rust-wayrs-protocols-0.13., guix-commits, 2024/02/12
- 03/44: gnu: Add rust-calibright-0.1., guix-commits, 2024/02/12
- 07/44: gnu: Add rust-from-variants-impl-0.6., guix-commits, 2024/02/12
- 09/44: gnu: Add rust-notmuch-0.8., guix-commits, 2024/02/12
- 10/44: gnu: rust-gethostname-0.2: Update to 0.2.3., guix-commits, 2024/02/12
- 12/44: gnu: Add rust-libsensors-sys-0.2., guix-commits, 2024/02/12
- 13/44: gnu: Add rust-sensors-0.2., guix-commits, 2024/02/12
- 20/44: gnu: Add rust-proc-macro-crate-3.,
guix-commits <=
- 18/44: gnu: Add rust-futures-lite-2., guix-commits, 2024/02/12
- 22/44: gnu: Add rust-wayrs-scanner-0.13., guix-commits, 2024/02/12
- 23/44: gnu: Add rust-wayrs-client-1., guix-commits, 2024/02/12
- 19/44: gnu: Add rust-swayipc-async-2., guix-commits, 2024/02/12
- 28/44: gnu: Add rust-async-lock-3., guix-commits, 2024/02/12
- 31/44: gnu: Add rust-xdg-home-1., guix-commits, 2024/02/12
- 32/44: gnu: Add rust-async-signal-0.2., guix-commits, 2024/02/12
- 36/44: gnu: rust-zbus-3: Update to 3.14.1., guix-commits, 2024/02/12
- 35/44: gnu: rust-async-fs-1: Update to 1.6.0., guix-commits, 2024/02/12
- 33/44: gnu: Add rust-event-listener-3., guix-commits, 2024/02/12