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.
This commit is contained in:
Nicolas Goaziou 2021-06-07 23:36:50 +02:00
parent 1477fdf2b0
commit 3bc0c3bee2
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -11142,8 +11142,37 @@ (define-public rust-darling-0.10
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 @@ (define-public rust-darling-core-0.10
(sha256
(base32
"16sija1jv0l754x4aa6b6fy01d1kf8m0r4id3flqipm45np61jgh"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-fnv" ,rust-fnv-1)
@ -11163,13 +11191,7 @@ (define-public rust-darling-core-0.10
("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