diff options
author | Jakub Kądziołka <kuba@kadziolka.net> | 2020-08-03 20:29:19 +0200 |
---|---|---|
committer | Jakub Kądziołka <kuba@kadziolka.net> | 2020-08-04 15:57:34 +0200 |
commit | b20099df8cd3c5d110c83e63050f67583fee06e1 (patch) | |
tree | 785af676ea19d7cf9649c5a28b3b030a9dc19b29 | |
parent | fc8374aa118145eb10df35bc08d37a1071d5c374 (diff) | |
download | guix-b20099df8cd3c5d110c83e63050f67583fee06e1.tar.gz |
gnu: Add rust-darling-0.10.
* gnu/packages/crates-io.scm (rust-darling-0.10, rust-darling-core-0.10, rust-darling-macro-0.10): New variables.
-rw-r--r-- | gnu/packages/crates-io.scm | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1f50b9542e..9d047e8840 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -5102,6 +5102,90 @@ Transparency logs for use with sct crate.") attributes.") (license (list license:asl2.0 license:expat)))) +(define-public rust-darling-0.10 + (package + (name "rust-darling") + (version "0.10.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "darling" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0n7qsp6854wm3y1q1lvylhv15zvc87ibbac1nyfmcdbyv1snww0d")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-darling-core" ,rust-darling-core-0.10) + ("rust-darling-macro" ,rust-darling-macro-0.10)) + #: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))) + +(define-public rust-darling-core-0.10 + (package + (name "rust-darling-core") + (version "0.10.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "darling-core" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "16sija1jv0l754x4aa6b6fy01d1kf8m0r4id3flqipm45np61jgh")))) + (build-system cargo-build-system) + (arguments + `(#: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.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))) + +(define-public rust-darling-macro-0.10 + (package + (name "rust-darling-macro") + (version "0.10.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "darling_macro" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0wlv31cxkrjijz5gv13hvk55c9lmd781aj12c8n84sa9mksa5dfr")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-darling-core" ,rust-darling-core-0.10) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)))) + (home-page "https://github.com/TedDriggs/darling") + (synopsis "Helper crate for @code{rust-darling}") + (description + "Internal support for @code{rust-darling}, a proc-macro library for +reading attributes into structs when implementing custom derives.") + (license license:expat))) + (define-public rust-data-encoding-2.1 (package (name "rust-data-encoding") |