Add auto-generated DBus bindings.

Code largely taken from git.sr.ht/~rycee/sd-switch
This commit is contained in:
R-VdP 2023-02-03 15:58:42 +00:00
parent 4592e2bacc
commit b291685a98
No known key found for this signature in database
7 changed files with 3954 additions and 1 deletions

27
Cargo.lock generated
View file

@ -78,6 +78,17 @@ dependencies = [
"os_str_bytes",
]
[[package]]
name = "dbus"
version = "0.9.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bb21987b9fb1613058ba3843121dd18b163b254d8a6e797e144cbac14d96d1b"
dependencies = [
"libc",
"libdbus-sys",
"winapi",
]
[[package]]
name = "env_logger"
version = "0.10.0"
@ -167,6 +178,15 @@ version = "0.2.139"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79"
[[package]]
name = "libdbus-sys"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2264f9d90a9b4e60a2dc722ad899ea0374f03c2e96e755fe22a8f551d4d5fb3c"
dependencies = [
"pkg-config",
]
[[package]]
name = "linux-raw-sys"
version = "0.1.4"
@ -229,6 +249,12 @@ version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
[[package]]
name = "pkg-config"
version = "0.3.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160"
[[package]]
name = "proc-macro-error"
version = "1.0.4"
@ -345,6 +371,7 @@ version = "0.1.0"
dependencies = [
"anyhow",
"clap",
"dbus",
"env_logger",
"log",
"nix",