diff --git a/Cargo.lock b/Cargo.lock index b55c4f3fb..2705acdd7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -861,7 +861,7 @@ dependencies = [ "shlex", "smol", "termwiz", - "toml 0.7.4", + "toml 0.7.3", "umask", "wezterm-bidi", "wezterm-config-derive", @@ -4858,7 +4858,7 @@ dependencies = [ "tar", "tempfile", "tokio", - "toml 0.7.4", + "toml 0.7.3", "wezterm-dynamic", "yaml-rust", ] @@ -5264,9 +5264,9 @@ dependencies = [ [[package]] name = "toml" -version = "0.7.4" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6135d499e69981f9ff0ef2167955a5333c35e36f6937d382974566b3d5b94ec" +checksum = "b403acf6f2bb0859c93c7f0d967cb4a75a7ac552100f9322faf64dc047669b21" dependencies = [ "serde", "serde_spanned", @@ -5285,9 +5285,9 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.19.10" +version = "0.19.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2380d56e8670370eee6566b0bfd4265f65b3f432e8c6d85623f728d4fa31f739" +checksum = "239410c8609e8125456927e6707163a3b1fdb40561e4b803bc041f466ccfdc13" dependencies = [ "indexmap", "serde", @@ -6588,9 +6588,9 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" [[package]] name = "winnow" -version = "0.4.6" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61de7bac303dc551fe038e2b3cef0f571087a47571ea6e79a87692ac99b99699" +checksum = "ae8970b36c66498d8ff1d66685dc86b91b29db0c7739899012f63a63814b4b28" dependencies = [ "memchr", ] @@ -6665,6 +6665,16 @@ dependencies = [ "nom", ] +[[package]] +name = "xdg-home" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2769203cd13a0c6015d515be729c526d041e9cf2c0cc478d57faee85f40c6dcd" +dependencies = [ + "nix 0.26.2", + "winapi", +] + [[package]] name = "xkbcommon" version = "0.5.0" @@ -6702,27 +6712,28 @@ dependencies = [ [[package]] name = "zbus" -version = "3.10.0" +version = "3.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f770930448dd412a4a7131dd968a8e6df0064db4d7916fbbd2d6c3f26b566938" +checksum = "6c3d77c9966c28321f1907f0b6c5a5561189d1f7311eea6d94180c6be9daab29" dependencies = [ "async-broadcast", "async-executor", + "async-fs", "async-io", "async-lock", + "async-process", "async-recursion", "async-task", "async-trait", "byteorder", "derivative", - "dirs", "enumflags2", "event-listener", "futures-core", "futures-sink", "futures-util", "hex", - "nix 0.25.1", + "nix 0.26.2", "once_cell", "ordered-stream", "rand", @@ -6733,6 +6744,7 @@ dependencies = [ "tracing", "uds_windows", "winapi", + "xdg-home", "zbus_macros", "zbus_names", "zvariant", @@ -6740,15 +6752,17 @@ dependencies = [ [[package]] name = "zbus_macros" -version = "3.10.0" +version = "3.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4832059b438689017db7340580ebabba07f114eab91bf990c6e55052408b40d8" +checksum = "f6e341d12edaff644e539ccbbf7f161601294c9a84ed3d7e015da33155b435af" dependencies = [ "proc-macro-crate", "proc-macro2", "quote", "regex", "syn 1.0.109", + "winnow", + "zvariant_utils", ] [[package]] diff --git a/wezterm-toast-notification/Cargo.toml b/wezterm-toast-notification/Cargo.toml index 5c1a4bf1c..5a49cbd6f 100644 --- a/wezterm-toast-notification/Cargo.toml +++ b/wezterm-toast-notification/Cargo.toml @@ -13,8 +13,8 @@ log = "0.4" [target.'cfg(all(not(windows), not(target_os="macos")))'.dependencies] serde = {version="1.0", features = ["derive"]} -zbus = "3.0" -zvariant = "3.6" +zbus = "3.13" +zvariant = "3.14" async-io = "1.10" futures-util = "0.3" diff --git a/window/Cargo.toml b/window/Cargo.toml index 8835a4670..3f4c6268b 100644 --- a/window/Cargo.toml +++ b/window/Cargo.toml @@ -79,8 +79,8 @@ wayland-protocols = {version="0.29", optional=true} wayland-client = {version="0.29", optional=true} wayland-egl = {version="0.29", optional=true} xcb-imdkit = { version="0.2", git="https://github.com/wez/xcb-imdkit-rs.git", branch="hangfix"} -zbus = "3.0" -zvariant = "3.6" +zbus = "3.13" +zvariant = "3.14" futures-util = "0.3" futures-lite = "1.12" diff --git a/window/src/os/xdg_desktop_portal.rs b/window/src/os/xdg_desktop_portal.rs index 0162aef87..9592ece8e 100644 --- a/window/src/os/xdg_desktop_portal.rs +++ b/window/src/os/xdg_desktop_portal.rs @@ -122,7 +122,7 @@ pub async fn get_appearance() -> anyhow::Result> { match read_setting("org.freedesktop.appearance", "color-scheme").await { Ok(value) => { - let appearance = value_to_appearance(value)?; + let appearance = value_to_appearance(value).context("value_to_appearance")?; state.appearance = CachedAppearance::Some(appearance); state.last_update = Instant::now(); Ok(Some(appearance)) @@ -134,7 +134,7 @@ pub async fn get_appearance() -> anyhow::Result> { state.last_update = Instant::now(); // but bubble up the underlying message so that we can // log a warning elsewhere - Err(err) + Err(err).context("get_appearance.read_setting") } } }