diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-06-07 23:36:50 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-06-08 11:04:37 +0200 |
commit | 3bc0c3bee28d4722f65cb8a056bfb2e922f946dc (patch) | |
tree | 167884125874cf6e8e673a3bd2992be4ca9f4549 /gnu | |
parent | 1477fdf2b098b73cea99e81a8c7b5842eb15c30a (diff) |
gnu: Add rust-darling-core-0.12.
* gnu/packages/crates-io.scm (rust-darling-core-0.12): New variable.
(rust-darling-core-0.10): Inherit from above.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index e8960e3cd3..0cd7617a6f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -11142,8 +11142,37 @@ crate (implementation detail).") into structs when implementing custom derives.") (license license:expat))) +(define-public rust-darling-core-0.12 + (package + (name "rust-darling-core") + (version "0.12.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "darling_core" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0dpscl87s75h6yhrmzdsapx86lc4y16m554xg4hiq2l3hrdlb4cf")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-fnv" ,rust-fnv-1) + ("rust-ident-case" ,rust-ident-case-1) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-strsim" ,rust-strsim-0.10) + ("rust-syn" ,rust-syn-1)))) + (home-page "https://github.com/TedDriggs/darling") + (synopsis "Helper crate for @code{rust-darling}") + (description + "Helper crate for @code{rust-darling}, a proc-macro library for +reading attributes into structs when implementing custom derives.") + (license license:expat))) + (define-public rust-darling-core-0.10 (package + (inherit rust-darling-core-0.12) (name "rust-darling-core") (version "0.10.2") (source @@ -11155,7 +11184,6 @@ into structs when implementing custom derives.") (sha256 (base32 "16sija1jv0l754x4aa6b6fy01d1kf8m0r4id3flqipm45np61jgh")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-fnv" ,rust-fnv-1) @@ -11163,13 +11191,7 @@ into structs when implementing custom derives.") ("rust-proc-macro2" ,rust-proc-macro2-1) ("rust-quote" ,rust-quote-1) ("rust-strsim" ,rust-strsim-0.9) - ("rust-syn" ,rust-syn-1)))) - (home-page "https://github.com/TedDriggs/darling") - (synopsis "Helper crate for @code{rust-darling}") - (description - "Helper crate for @code{rust-darling}, 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-macro-0.10 (package |