Subject: [bug#66839] [PATCH 06/19] gnu: Add rust-dbus-crossroads-0.5.

From: Steve George <[email-masked]>
Date: Mon, 30 Oct 2023 21:06:12 +0000

* gnu/packages/crates-io.scm (rust-dbus-crossroads-0.5): New variable.
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 27ebe2a080..d3e5a78cc5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -19771,6 +19771,29 @@ (define-public rust-dbus-0.9
     (description "This package provides Rust bindings to D-Bus.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-dbus-crossroads-0.5
+  (package
+    (name "rust-dbus-crossroads")
+    (version "0.5.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "dbus-crossroads" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1q3dyywazr3hppm052fa8q2366q66ml789r42jjlnm47f51q6k1s"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f
+       #:cargo-inputs (("rust-dbus" ,rust-dbus-0.9))
+       #:cargo-development-inputs (("rust-tokio", rust-tokio-1))))
+    (native-inputs (list pkg-config))
+    (inputs (list dbus-glib))
+    (home-page "https://github.com/diwic/dbus-rs/")
+    (synopsis "Framework for writing D-Bus method handlers")
+    (description "Framework for writing D-Bus method handlers in Rust.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-dbus-tree-0.9
   (package
     (name "rust-dbus-tree")
-- 
2.41.0