Subject: [bug#68312] [PATCH 083/156] gnu: Add rust-metrics-macros-0.7.

From: Wilko Meyer <[email-masked]>
Date: Mon, 8 Jan 2024 02:53:00 +0100

* gnu/packages/crates-io.scm (rust-metrics-macros-0.7): New variable.
(rust-metrics-macros-0.2): Inherit from rust-metrics-macros-0.7.

Change-Id: I536f2c7e51a55d38fdb4194699f560dffa081ee0
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e19f3d04385..061fd64df04 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -41332,8 +41332,31 @@ (define-public rust-metrics-exporter-prometheus-0.12
 Prometheus.")
     (license license:expat)))
 
+(define-public rust-metrics-macros-0.7
+  (package
+    (name "rust-metrics-macros")
+    (version "0.7.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "metrics-macros" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0krmj7zyr4g14jdpk1jasi1w2nw64hqdxb2lfx4zxphp0vqgmd1q"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-quote" ,rust-quote-1)
+                       ("rust-syn" ,rust-syn-2))))
+    (home-page "https://github.com/metrics-rs/metrics")
+    (synopsis "Macros for the metrics crate.")
+    (description "This package provides macros for the metrics crate.")
+    (license license:expat)))
+
 (define-public rust-metrics-macros-0.2
   (package
+    (inherit rust-metrics-macros-0.7)
     (name "rust-metrics-macros")
     (version "0.2.0")
     (source (origin
@@ -41343,7 +41366,6 @@ (define-public rust-metrics-macros-0.2
               (sha256
                (base32
                 "0yy2dc9g3m1h8df6bmnqh1sngyvrgznz1fjpkp9rz1is9p6n1b0i"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-lazy-static" ,rust-lazy-static-1)
@@ -41351,7 +41373,8 @@ (define-public rust-metrics-macros-0.2
         ("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
         ("rust-regex" ,rust-regex-1)
-        ("rust-syn" ,rust-syn-1))))
+        ("rust-syn" ,rust-syn-1))))))
+
     (home-page "https://github.com/metrics-rs/metrics")
     (synopsis "Macros for the metrics crate")
     (description "This package provides macros for the metrics crate.")
-- 
2.41.0