diff --git a/Cargo.lock b/Cargo.lock index a93594b..e79a865 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -149,6 +149,7 @@ dependencies = [ "clap", "crossterm 0.29.0", "dbus", + "futures", "heck", "jiff", "petgraph", @@ -159,6 +160,7 @@ dependencies = [ "serde_plain", "signal-hook 0.4.5", "thiserror 2.0.21", + "tokio", "toml", "unicode-truncate", "unicode-width", @@ -587,12 +589,59 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" +[[package]] +name = "futures" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", + "futures-sink", +] + [[package]] name = "futures-core" version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + [[package]] name = "futures-task" version = "0.3.34" @@ -605,8 +654,13 @@ version = "0.3.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" dependencies = [ + "futures-channel", "futures-core", + "futures-io", + "futures-macro", + "futures-sink", "futures-task", + "memchr", "pin-project-lite", "slab", ] @@ -1629,6 +1683,16 @@ version = "1.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b3dc8af474f516a851ff4bd12db780f948b9250ad37211e4eec0bccea54e01b" +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + [[package]] name = "stacker" version = "0.1.25" @@ -1857,6 +1921,20 @@ version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" +[[package]] +name = "tokio" +version = "1.54.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0c168a474b95bfecfe908a65d4bdffc523144b649a74c09c286afb35d53e0bc" +dependencies = [ + "libc", + "mio", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "windows-sys 0.61.2", +] + [[package]] name = "toml" version = "1.1.8+spec-1.1.0" diff --git a/Cargo.toml b/Cargo.toml index 93903a9..4532570 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,6 +27,7 @@ workspace = true clap = { version = "4.6.7", default-features = false, features = ["std", "derive", "help", "usage", "error-context"] } crossterm = "0.29.0" dbus = "0.9.12" +futures = { version = "0.3.34", default-features = false, features = ["std", "async-await"] } heck = "0.5.0" jiff = { version = "0.2.38", default-features = false, features = ["serde", "std"] } petgraph = { version = "0.8.3", default-features = false, features = ["std", "graphmap"] } @@ -37,6 +38,7 @@ serde = { version = "1.0.229", features = ["derive"] } serde_plain = "1.0.2" signal-hook = "0.4.5" thiserror = "2.0.12" +tokio = { version = "1.54.0", default-features = false, features = ["rt", "time", "net", "signal"] } toml = { version = "1.1.8", features = ["preserve_order"] } unicode-truncate = "2.0.1" unicode-width = "0.2.2"