Subject: [PATCH 79/81] gnu: Add rust-ruma-client-0.13.

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

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

Change-Id: Id360f39926a6b2fc63ea829eee60e20b60d8d751
---
 gnu/packages/crates-io.scm | 47 +++++++++++++++++++++++++++++++++-----
 1 file changed, 41 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 434626af63..a314230194 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66693,8 +66693,48 @@ (define-public rust-ruma-appservice-api-0.9
 application service API.")
     (license license:expat)))
 
+(define-public rust-ruma-client-0.13
+  (package
+    (name "rust-ruma-client")
+    (version "0.13.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ruma-client" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+          "01r6zjfz93zj02wcmrdvgfmr5hxkna6xqvbvvs96dq81jczwfb1r"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list ; Skip the doctests.
+      #:cargo-test-flags `(list "--release" "--lib" "--bins" "--tests")
+      #:cargo-inputs (list rust-as-variant-1
+                           rust-assign-1
+                           rust-async-stream-0.3
+                           rust-bytes-1
+                           rust-futures-core-0.3
+                           rust-http-1
+                           rust-http-body-util-0.1
+                           rust-hyper-1
+                           rust-hyper-rustls-0.27
+                           rust-hyper-tls-0.6
+                           rust-hyper-util-0.1
+                           rust-reqwest-0.12
+                           rust-ruma-client-api-0.18
+                           rust-ruma-common-0.13
+                           rust-serde-html-form-0.2
+                           rust-tracing-0.1)
+      #:cargo-development-inputs (list rust-ruma-client-api-0.18
+                                       rust-tokio-stream-0.1)))
+    (home-page "https://ruma.dev/")
+    (synopsis "Matrix client library")
+    (description "This package provides a Matrix client library.")
+    (license license:expat)))
+
 (define-public rust-ruma-client-0.12
   (package
+    (inherit rust-ruma-client-0.13)
     (name "rust-ruma-client")
     (version "0.12.0")
     (source
@@ -66704,7 +66744,6 @@ (define-public rust-ruma-client-0.12
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "136dbzns8bs9xwr97gpnrz7cblwhpfrr85mnrclb34gm0snq2p3g"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-test-flags '("--release" "--all-targets")
        #:cargo-inputs (("rust-assign" ,rust-assign-1)
@@ -66727,11 +66766,7 @@ (define-public rust-ruma-client-0.12
                        ("rust-tracing" ,rust-tracing-0.1))
        #:cargo-development-inputs
        (("rust-ruma-client-api" ,rust-ruma-client-api-0.17)
-        ("rust-tokio-stream" ,rust-tokio-stream-0.1))))
-    (home-page "https://www.ruma.io/")
-    (synopsis "Matrix client library")
-    (description "This package provides a Matrix client library.")
-    (license license:expat)))
+        ("rust-tokio-stream" ,rust-tokio-stream-0.1))))))
 
 (define-public rust-ruma-client-api-0.18
   (package
-- 
2.41.0