aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/crates-io.scm61
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")