Subject: [bug#71076] [PATCH 76/81] gnu: Add rust-ruma-client-api-0.18.

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

* gnu/packages/crates-io.scm (rust-ruma-client-api-0.18): Add variable.
(rust-ruma-client-api-0.17): Inherit from rust-ruma-client-api-0.18.

Change-Id: I5ed54d18fa9f66dd52e5a27a82a2f558560ed063
---
 gnu/packages/crates-io.scm | 47 +++++++++++++++++++++++++++++++-------
 1 file changed, 39 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f4b6d338ee..434626af63 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66733,8 +66733,46 @@ (define-public rust-ruma-client-0.12
     (description "This package provides a Matrix client library.")
     (license license:expat)))
 
+(define-public rust-ruma-client-api-0.18
+  (package
+    (name "rust-ruma-client-api")
+    (version "0.18.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ruma-client-api" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1b9q1264g42y0a6pgxx7zxqad04fi1ps7nmi3302y07ynpbcjzps"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-as-variant-1
+                           rust-assign-1
+                           rust-bytes-1
+                           rust-date-header-1
+                           rust-http-1
+                           rust-js-int-0.2
+                           rust-js-option-0.1
+                           rust-maplit-1
+                           rust-ruma-common-0.13
+                           rust-ruma-events-0.28
+                           rust-serde-1
+                           rust-serde-html-form-0.2
+                           rust-serde-json-1
+                           rust-thiserror-1
+                           rust-web-time-1)
+      #:cargo-development-inputs (list rust-assert-matches2-0.1)))
+    (home-page "https://ruma.dev/")
+    (synopsis "Types for Matrix client-server API endpoints.")
+    (description
+      "This package provides types for the endpoints in the Matrix
+client-server API.")
+    (license license:expat)))
+
 (define-public rust-ruma-client-api-0.17
   (package
+    (inherit rust-ruma-client-api-0.18)
     (name "rust-ruma-client-api")
     (version "0.17.4")
     (source
@@ -66744,7 +66782,6 @@ (define-public rust-ruma-client-api-0.17
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "11ik20rnm1c1a3cdbqg8dayd7xgh9sai8xa74c4af552iwjkf634"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-assign" ,rust-assign-1)
                        ("rust-bytes" ,rust-bytes-1)
@@ -66758,13 +66795,7 @@ (define-public rust-ruma-client-api-0.17
                        ("rust-serde-html-form" ,rust-serde-html-form-0.2)
                        ("rust-serde-json" ,rust-serde-json-1))
        #:cargo-development-inputs
-       (("rust-assert-matches2" ,rust-assert-matches2-0.1))))
-    (home-page "https://ruma.io/")
-    (synopsis "Types for Matrix client-server API endpoints.")
-    (description
-      "This package provides types for the endpoints in the Matrix
-client-server API.")
-    (license license:expat)))
+       (("rust-assert-matches2" ,rust-assert-matches2-0.1))))))
 
 (define-public rust-ruma-common-0.13
   (package
-- 
2.41.0