diff options
author | Aleksandr Vityazev <avityazew@gmail.com> | 2023-10-07 03:01:58 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-10-22 13:02:34 +0300 |
commit | 832f8e12f9353a0f270c58cdbf4b77fedbd56b67 (patch) | |
tree | 41b7802a17b59ebc1d35b0373e627505fd0e3c64 | |
parent | a0db32b18a578a8f7aeb37a10e008418fc8d9483 (diff) |
gnu: Add rust-darling-0.20.
* gnu/packages/crates-io.scm (rust-darling-0.20): New variable.
(rust-darling-0.14): Inherit from rust-darling-0.20.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r-- | gnu/packages/crates-io.scm | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 0c899437d2..e6183672e6 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -18726,19 +18726,43 @@ crate (implementation detail).") (description "Daemonize is a Rust library for writing system deaemons.") (license (list license:expat license:asl2.0)))) +(define-public rust-darling-0.20 + (package + (name "rust-darling") + (version "0.20.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "darling" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0pjwwadwgnvvgn5qm3glpv7hjl7siaqqpw6cvh2mdar7lr6xj282")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-darling-core" ,rust-darling-core-0.20) + ("rust-darling-macro" ,rust-darling-macro-0.20)))) + (home-page "https://github.com/TedDriggs/darling") + (synopsis "Proc-macro library for reading attributes in custom derives") + (description + "This package provides a proc-macro library for reading attributes +into structs when implementing custom derives.") + (license license:expat))) + (define-public rust-darling-0.14 (package + (inherit rust-darling-0.20) (name "rust-darling") (version "0.14.1") (source (origin (method url-fetch) (uri (crate-uri "darling" version)) - (file-name - (string-append name "-" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "00mc7svmwphywkwndzkjxsqaxhygrm8f4jv1p1lngzd7vn5naaa5")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs @@ -18747,13 +18771,7 @@ crate (implementation detail).") #:cargo-development-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) ("rust-quote" ,rust-quote-1) - ("rust-syn" ,rust-syn-1)))) - (home-page "https://github.com/TedDriggs/darling") - (synopsis "Proc-macro library for reading attributes in custom derives") - (description - "This package provides a proc-macro library for reading attributes -into structs when implementing custom derives.") - (license license:expat))) + ("rust-syn" ,rust-syn-1)))))) (define-public rust-darling-0.13 (package |