Subject: [PATCH 07/19] gnu: Add rust-dbus-tokio-0.7.

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

* gnu/packages/crates-io.scm (rust-dbus-tokio-0.7): New variable.

Change-Id: Ic473ae3b693cf3715f3c924c2cbae70c312215d8
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d3e5a78cc5..6ff410c685 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -19794,6 +19794,36 @@ (define-public rust-dbus-crossroads-0.5
     (description "Framework for writing D-Bus method handlers in Rust.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-dbus-tokio-0.7
+    (package
+      (name "rust-dbus-tokio")
+      (version "0.7.5")
+      (source
+        (origin
+          (method url-fetch)
+          (uri (crate-uri "dbus-tokio" version))
+          (file-name (string-append name "-" version ".tar.gz"))
+          (sha256
+            (base32 "10112g227iasjiid7y9wrvnmxypfrczcymj2k5yjvcjk1i5ag88j"))))
+      (build-system cargo-build-system)
+      (arguments
+        `(#:tests? #f ;; tests require X11 $DISPLAY
+          #:cargo-inputs
+          (("rust-dbus" ,rust-dbus-0.9)
+           ("rust-libc" ,rust-libc-0.2)
+           ("rust-tokio" ,rust-tokio-1)
+           ("dbus-crossroads" ,rust-dbus-crossroads-0.5))
+          #:cargo-development-inputs
+          (("dbus-tree" ,rust-dbus-tree-0.9)
+           ("futures" ,rust-futures-0.3))))
+      (native-inputs (list pkg-config))
+      (inputs (list dbus))
+      (home-page "https://github.com/diwic/dbus-rs")
+      (synopsis "Access to D-Bus when using Rust's @code{Tokio} async framework")
+      (description
+        "Access to D-Bus when using Rust's @code{Tokio} async framework.")
+      (license license:expat)))
+
 (define-public rust-dbus-tree-0.9
   (package
     (name "rust-dbus-tree")
-- 
2.41.0