diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-12-04 14:32:11 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2020-12-04 14:32:53 +0100 |
commit | a67118ef270484985c628e8b61ea54fff953f366 (patch) | |
tree | 9907fb6e7aa75cec629e5649d1f1022dd7fcc26d /gnu | |
parent | d31540bd5f9339b69b06cfa452da3f56b3b9eccc (diff) | |
download | guix-a67118ef270484985c628e8b61ea54fff953f366.tar.gz guix-a67118ef270484985c628e8b61ea54fff953f366.zip |
gnu: Add rust-proc-macro-error-1.
* gnu/packages/crates-io.scm (rust-proc-macro-error-1): New variable.
(rust-proc-macro-error-0.4): inherit from variable above.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-io.scm | 61 |
1 files changed, 42 insertions, 19 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index cce36416cc..460c0a6707 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -20199,34 +20199,57 @@ replacements, adding colorful diffs.") formatted tables in terminal.") (license license:bsd-3))) -(define-public rust-proc-macro-error-0.4 +(define-public rust-proc-macro-error-1 (package (name "rust-proc-macro-error") - (version "0.4.12") + (version "1.0.4") (source - (origin - (method url-fetch) - (uri (crate-uri "proc-macro-error" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "1rvpaadwv7vmsp142qqh2axqrr9v78f1nvdsi9nhmfhy10kk1wqq")))) + (origin + (method url-fetch) + (uri (crate-uri "proc-macro-error" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1373bhxaf0pagd8zkyd03kkx6bchzf6g0dkwrwzsnal9z47lj9fs")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-proc-macro-error-attr" ,rust-proc-macro-error-attr-0.4) - ("rust-version-check" ,rust-version-check-0.9) - ("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-syn" ,rust-syn-1) - ("rust-quote" ,rust-quote-1)))) + `(#:skip-build? #t + #:cargo-inputs + (("rust-proc-macro-error-attr" ,rust-proc-macro-error-attr-1) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1) + ("rust-version-check" ,rust-version-check-0.9)))) (home-page "https://gitlab.com/CreepySkeleton/proc-macro-error") - (synopsis "Almost drop-in replacement to panics in proc-macros") + (synopsis "Drop-in replacement to panics in proc-macros") (description - "Almost drop-in replacement to panics in proc-macros.") + "This crate serves as a tiny shim around @code{proc_macro::Diagnostic} +and @code{compile_error!}. It detects the most preferable way to emit errors +based on compiler's version. When the underlying diagnostic type is finally +stabilized, this crate will be simply delegating to it, requiring no changes +in your code.") (license (list license:expat license:asl2.0)))) +(define-public rust-proc-macro-error-0.4 + (package + (inherit rust-proc-macro-error-1) + (name "rust-proc-macro-error") + (version "0.4.12") + (source + (origin + (method url-fetch) + (uri (crate-uri "proc-macro-error" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1rvpaadwv7vmsp142qqh2axqrr9v78f1nvdsi9nhmfhy10kk1wqq")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-proc-macro-error-attr" ,rust-proc-macro-error-attr-0.4) + ("rust-version-check" ,rust-version-check-0.9) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-syn" ,rust-syn-1) + ("rust-quote" ,rust-quote-1)))))) + (define-public rust-proc-macro-error-attr-1 (package (name "rust-proc-macro-error-attr") |