diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-11-20 20:22:36 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-11-28 11:05:31 +0200 |
commit | a4dc70718c3c6671d154438c3cc1d7b4358e117d (patch) | |
tree | 06abe6dcc5cbf747747a4d07205eb4f40292e639 | |
parent | 65031f34e5dc800fc6bb5a5edf124e2560c07d95 (diff) |
gnu: Add rust-synstructure-0.13.
* gnu/packages/crates-io.scm (rust-synstructure-0.13): New variable.
(rust-synstructure-0.12): Inherit from rust-synstructure-0.13.
Change-Id: I7fab0d83a5b1d32c6cba8f1c576e746f6b2e7c10
-rw-r--r-- | gnu/packages/crates-io.scm | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 3374a1fa53..3dcc657485 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -80574,8 +80574,33 @@ the absence of concurrency.") "Stripped-down Nom parser used by Syn.") (license (list license:expat license:asl2.0)))) +(define-public rust-synstructure-0.13 + (package + (name "rust-synstructure") + (version "0.13.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "synstructure" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0wc9f002ia2zqcbj0q2id5x6n7g1zjqba7qkg2mr0qvvmdk7dby8")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-2)) + #:cargo-development-inputs + (("rust-synstructure-test-traits" ,rust-synstructure-test-traits-0.1)))) + (home-page "https://github.com/mystor/synstructure") + (synopsis "Helper methods and macros for custom derives") + (description + "This package provides helper methods and macros for custom derives.") + (license license:expat))) + (define-public rust-synstructure-0.12 (package + (inherit rust-synstructure-0.13) (name "rust-synstructure") (version "0.12.6") (source @@ -80587,7 +80612,6 @@ the absence of concurrency.") (sha256 (base32 "03r1lydbf3japnlpc4wka7y90pmz1i0danaj3f9a7b431akdlszk")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs @@ -80603,12 +80627,7 @@ the absence of concurrency.") (add-after 'unpack 'fix-test (lambda _ (substitute* "src/lib.rs" - (("non_upper_case_globals )") "non_upper_case_globals)"))))))) - (home-page "https://github.com/mystor/synstructure") - (synopsis "Helper methods and macros for custom derives") - (description - "This package provides helper methods and macros for custom derives.") - (license license:expat))) + (("non_upper_case_globals )") "non_upper_case_globals)"))))))))) (define-public rust-synstructure-test-traits-0.1 (package |