Subject: [bug#71076] [PATCH 71/81] gnu: Add rust-ruma-server-util-0.3.

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

* gnu/packages/crates-io.scm (rust-ruma-server-util-0.3): Add variable.
(rust-ruma-server-util-0.2): Inherit from rust-ruma-server-util-0.3.

Change-Id: I432cc0289492c78424eb62e2421054e861a562a1
---
 gnu/packages/crates-io.scm | 37 ++++++++++++++++++++++++++++---------
 1 file changed, 28 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ba36290d15..f570ef62d7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -67119,8 +67119,33 @@ (define-public rust-ruma-push-gateway-api-0.8
 Matrix push gateway API.")
     (license license:expat)))
 
+(define-public rust-ruma-server-util-0.3
+  (package
+    (name "rust-ruma-server-util")
+    (version "0.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ruma-server-util" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0pn2vzsw9q6s9f3jiq6f8vhbd9w1s5s2kxz5am092cgg8655dap1"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-headers-0.4 rust-ruma-common-0.13
+                           rust-tracing-0.1 rust-yap-0.12)
+      #:cargo-development-inputs (list rust-tracing-subscriber-0.3)))
+    (home-page "https://ruma.dev/")
+    (synopsis "Utilities for implementing Matrix server applications")
+    (description
+      "This package provides utilities for implementing Matrix server
+applications.")
+    (license license:expat)))
+
 (define-public rust-ruma-server-util-0.2
   (package
+    (inherit rust-ruma-server-util-0.3)
     (name "rust-ruma-server-util")
     (version "0.2.0")
     (source
@@ -67129,21 +67154,15 @@ (define-public rust-ruma-server-util-0.2
        (uri (crate-uri "ruma-server-util" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0sr01j9qanlyz3nj8zvdk1blhhffhgk5p13x4jjimhii988fadh8"))))
-    (build-system cargo-build-system)
+        (base32
+          "0sr01j9qanlyz3nj8zvdk1blhhffhgk5p13x4jjimhii988fadh8"))))
     (arguments
      `(#:cargo-inputs (("rust-headers" ,rust-headers-0.3)
                        ("rust-ruma-common" ,rust-ruma-common-0.12)
                        ("rust-tracing" ,rust-tracing-0.1)
                        ("rust-yap" ,rust-yap-0.11))
        #:cargo-development-inputs
-       (("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3))))
-    (home-page "https://www.ruma.io/")
-    (synopsis "Utilities for implementing Matrix server applications")
-    (description
-      "This package provides utilities for implementing Matrix server
-applications.")
-    (license license:expat)))
+       (("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3))))))
 
 (define-public rust-ruma-signatures-0.15
   (package
-- 
2.41.0