[bug#75677,rust-team,18/89] gnu: rust-proc-macro-error2-2: New variable.

Message ID 20250119225033.3099535-18-aaron.covrig.us@ieee.org
State New
Headers
Series Assorted package updates for rust-team |

Commit Message

Aaron Covrig Jan. 19, 2025, 10:48 p.m. UTC
  * gnu/packages/crates-io.scm (rust-proc-macro-error2-2): New variable.
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
  

Patch

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")