Subject: [bug#71076] [PATCH 59/81] gnu: Add rust-ruma-macros-0.13.

From: Herman Rimm <[email-masked]>
Date: Mon, 20 May 2024 10:59:04 +0200

* gnu/packages/crates-io.scm (rust-ruma-macros-0.13): Add variable.
(rust-ruma-macros-0.12): Inherit from rust-ruma-macros-0.13.

Change-Id: If1f2e618ddcfb31373b3270426bdaa9a9aff052a
---
 gnu/packages/crates-io.scm | 41 ++++++++++++++++++++++++++++++--------
 1 file changed, 33 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2b40611b06..73e1b2a0b7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66844,8 +66844,38 @@ (define-public rust-ruma-identity-service-api-0.8
 Matrix identity service API.")
     (license license:expat)))
 
+(define-public rust-ruma-macros-0.13
+  (package
+    (name "rust-ruma-macros")
+    (version "0.13.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ruma-macros" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+          "10i2hpl3n3jkx13b9jrzdix240ss7m7wr3cnr7n139hf6nimfs6k"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-once-cell-1
+                           rust-proc-macro-crate-3
+                           rust-proc-macro2-1
+                           rust-quote-1
+                           rust-ruma-identifiers-validation-0.9
+                           rust-serde-1
+                           rust-syn-2
+                           rust-toml-0.8)))
+    (home-page "https://ruma.dev/")
+    (synopsis "Procedural macros used by the Ruma crates")
+    (description
+     "This package provides Procedural macros used by the Ruma crates.")
+    (license license:expat)))
+
 (define-public rust-ruma-macros-0.12
   (package
+    (inherit rust-ruma-macros-0.13)
     (name "rust-ruma-macros")
     (version "0.12.0")
     (source
@@ -66855,21 +66885,16 @@ (define-public rust-ruma-macros-0.12
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "105y2inhb9z7ydkax43qfc5ws264z72gm19ji1pl2d1y9d557002"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-once-cell" ,rust-once-cell-1)
                        ("rust-proc-macro-crate" ,rust-proc-macro-crate-2)
                        ("rust-proc-macro2" ,rust-proc-macro2-1)
                        ("rust-quote" ,rust-quote-1)
-                       ("rust-ruma-identifiers-validation" ,rust-ruma-identifiers-validation-0.9)
+                       ("rust-ruma-identifiers-validation"
+                        ,rust-ruma-identifiers-validation-0.9)
                        ("rust-serde" ,rust-serde-1)
                        ("rust-syn" ,rust-syn-2)
-                       ("rust-toml" ,rust-toml-0.8))))
-    (home-page "https://www.ruma.io/")
-    (synopsis "Procedural macros used by the Ruma crates.")
-    (description
-      "This package provides procedural macros used by the Ruma crates.")
-    (license license:expat)))
+                       ("rust-toml" ,rust-toml-0.8))))))
 
 (define-public rust-ruma-push-gateway-api-0.8
   (package
-- 
2.41.0