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

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

* gnu/packages/crates-io.scm (rust-ruma-0.10): Add variable.
(rust-ruma-0.9): Inherit from rust-ruma-0.10.

Change-Id: I699ee53df8fe61f86bd31284832f696df8a81d34
---
 gnu/packages/crates-io.scm | 48 +++++++++++++++++++++++++++++++-------
 1 file changed, 40 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 61988aea49..027e740032 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -66627,8 +66627,47 @@ (define-public rust-rug-1
 floating-point, and complex numbers based on GMP, MPFR and MPC.")
     (license license:lgpl3+)))
 
+(define-public rust-ruma-0.10
+  (package
+    (name "rust-ruma")
+    (version "0.10.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "ruma" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "088ma0x059wx39wdjslxjgxnzdw3qx1dpsl1dvpr4j58ghz5nm9s"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-assign-1
+                           rust-js-int-0.2
+                           rust-js-option-0.1
+                           rust-ruma-appservice-api-0.10
+                           rust-ruma-client-0.13
+                           rust-ruma-client-api-0.18
+                           rust-ruma-common-0.13
+                           rust-ruma-events-0.28
+                           rust-ruma-federation-api-0.9
+                           rust-ruma-html-0.2
+                           rust-ruma-identity-service-api-0.9
+                           rust-ruma-push-gateway-api-0.9
+                           rust-ruma-server-util-0.3
+                           rust-ruma-signatures-0.15
+                           rust-ruma-state-res-0.11
+                           rust-web-time-1)
+      #:cargo-development-inputs (list rust-serde-1)))
+    (home-page "https://ruma.dev/")
+    (synopsis "Types and traits for working with the Matrix protocol")
+    (description
+     "This package provides types and traits for working with the Matrix
+protocol.")
+    (license license:expat)))
+
 (define-public rust-ruma-0.9
   (package
+    (inherit rust-ruma-0.10)
     (name "rust-ruma")
     (version "0.9.4")
     (source
@@ -66638,7 +66677,6 @@ (define-public rust-ruma-0.9
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0dksah6cwdini5ln930plz8x01zv1qqdjnb28xilr5kjy26w6y97"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-assign" ,rust-assign-1)
@@ -66657,13 +66695,7 @@ (define-public rust-ruma-0.9
         ("rust-ruma-server-util" ,rust-ruma-server-util-0.2)
         ("rust-ruma-signatures" ,rust-ruma-signatures-0.14)
         ("rust-ruma-state-res" ,rust-ruma-state-res-0.10))
-       #:cargo-development-inputs (("rust-serde" ,rust-serde-1))))
-    (home-page "https://ruma.io/")
-    (synopsis "Types and traits for working with the Matrix protocol")
-    (description
-      "This package provides types and traits for working with the Matrix
-protocol.")
-    (license license:expat)))
+       #:cargo-development-inputs (("rust-serde" ,rust-serde-1))))))
 
 (define-public rust-ruma-appservice-api-0.10
   (package
-- 
2.41.0