summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorSteve George <steve@futurile.net>2023-10-30 21:06:13 +0000
committerEfraim Flashner <efraim@flashner.co.il>2023-11-28 07:59:29 +0200
commitdf96da96e262d0c539f307b3b5cfcf4ab9ed0764 (patch)
tree38c0af514e5cf51fcf05fad236297f6f90c41d46 /gnu/packages
parent0550316ac7bcf07df5832fa063705475a4f98b5d (diff)
downloadguix-df96da96e262d0c539f307b3b5cfcf4ab9ed0764.tar.gz
gnu: Add rust-dbus-tokio-0.7.
* gnu/packages/crates-io.scm (rust-dbus-tokio-0.7): New variable.

Change-Id: Ic473ae3b693cf3715f3c924c2cbae70c312215d8
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 77a7f65dd4..ceaf901033 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20365,6 +20365,35 @@ sizes.  Big-endian order is used.  WARNING: Block must be aligned!")
     (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-dbus-crossroads" ,rust-dbus-crossroads-0.5)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-tokio" ,rust-tokio-1))
+       #:cargo-development-inputs (("rust-dbus-tree" ,rust-dbus-tree-0.9)
+                                   ("rust-futures" ,rust-futures-0.3)
+                                   ("rust-tokio" ,rust-tokio-1))))
+    (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")