Subject: [PATCH rust-team 18/89] gnu: rust-proc-macro-error2-2: New variable.

From: Aaron Covrig <[email-masked]>
Date: Sun, 19 Jan 2025 17:48:52 -0500

* gnu/packages/crates-io.scm (rust-proc-macro-error2-2): New variable.
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 24cc992c3e..6204a28d9c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -56559,6 +56559,33 @@ (define-public rust-proc-macro-error-attr-1
     (description "Attribute macro for proc-macro-error crate")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-proc-macro-error2-2
+  (package
+    (name "rust-proc-macro-error2")
+    (version "2.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "proc-macro-error2" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "00lq21vgh7mvyx51nwxwf822w2fpww1x0z8z0q47p8705g2hbv0i"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ;use of undeclared crate or module `test_crate`
+       #:cargo-inputs (("rust-proc-macro-error-attr2" ,rust-proc-macro-error-attr2-2)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))
+       #:cargo-development-inputs (("rust-syn" ,rust-syn-2)
+                                   ("rust-trybuild" ,rust-trybuild-1))))
+    (home-page "https://github.com/GnomedDev/proc-macro-error-2")
+    (synopsis "Almost drop-in replacement to panics in proc-macros")
+    (description
+     "This crate aims to make error reporting in proc-macros simple and easy to
+use.  Migrate from panic!-based errors for as little effort as possible!")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-proc-macro-error-attr2-2
   (package
     (name "rust-proc-macro-error-attr2")
-- 
2.47.1