From 9abec63313f3710dc424fbf54a7789744c9172a6 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Wed, 3 Jul 2024 11:11:50 +0200 Subject: [PATCH] update dependencies --- Cargo.lock | 50 ++++++++++++++++++++++++++---------- input-capture/Cargo.toml | 6 ++--- input-capture/src/windows.rs | 2 +- input-emulation/Cargo.toml | 8 +++--- 4 files changed, 45 insertions(+), 21 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b71d506..2d77cd4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1210,7 +1210,7 @@ dependencies = [ "wayland-client", "wayland-protocols", "wayland-protocols-wlr", - "windows 0.54.0", + "windows 0.57.0", "x11", ] @@ -1233,7 +1233,7 @@ dependencies = [ "wayland-protocols", "wayland-protocols-misc", "wayland-protocols-wlr", - "windows 0.54.0", + "windows 0.57.0", "x11", ] @@ -2232,9 +2232,9 @@ dependencies = [ [[package]] name = "wayland-protocols" -version = "0.31.2" +version = "0.32.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f81f365b8b4a97f422ac0e8737c438024b5951734506b0e1d775c73030561f4" +checksum = "83d0f1056570486e26a3773ec633885124d79ae03827de05ba6c85f79904026c" dependencies = [ "bitflags 2.6.0", "wayland-backend", @@ -2244,9 +2244,9 @@ dependencies = [ [[package]] name = "wayland-protocols-misc" -version = "0.2.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa5933740b200188c9b4c38601b8212e8c154d7de0d2cb171944e137a77de1e" +checksum = "e76311e1866c955afbbc46ae97e57542acda1dc9b0298358263a8550b5247331" dependencies = [ "bitflags 2.6.0", "wayland-backend", @@ -2257,9 +2257,9 @@ dependencies = [ [[package]] name = "wayland-protocols-wlr" -version = "0.2.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad1f61b76b6c2d8742e10f9ba5c3737f6530b4c243132c2a2ccc8aa96fe25cd6" +checksum = "a7dab47671043d9f5397035975fe1cac639e5bca5cc0b3c32d09f01612e34d24" dependencies = [ "bitflags 2.6.0", "wayland-backend", @@ -2330,11 +2330,11 @@ dependencies = [ [[package]] name = "windows" -version = "0.54.0" +version = "0.57.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9252e5725dbed82865af151df558e754e4a3c2c30818359eb17465f1346a1b49" +checksum = "12342cb4d8e3b046f3d80effd474a7a02447231330ef77d71daa6fbc40681143" dependencies = [ - "windows-core 0.54.0", + "windows-core 0.57.0", "windows-targets 0.52.5", ] @@ -2349,14 +2349,38 @@ dependencies = [ [[package]] name = "windows-core" -version = "0.54.0" +version = "0.57.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12661b9c89351d684a50a8a643ce5f608e20243b9fb84687800163429f161d65" +checksum = "d2ed2439a290666cd67ecce2b0ffaad89c2a56b976b736e6ece670297897832d" dependencies = [ + "windows-implement", + "windows-interface", "windows-result", "windows-targets 0.52.5", ] +[[package]] +name = "windows-implement" +version = "0.57.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-interface" +version = "0.57.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "windows-result" version = "0.1.2" diff --git a/input-capture/Cargo.toml b/input-capture/Cargo.toml index eac69fa..eadb004 100644 --- a/input-capture/Cargo.toml +++ b/input-capture/Cargo.toml @@ -21,8 +21,8 @@ once_cell = "1.19.0" [target.'cfg(all(unix, not(target_os="macos")))'.dependencies] wayland-client = { version="0.31.1", optional = true } -wayland-protocols = { version="0.31.0", features=["client", "staging", "unstable"], optional = true } -wayland-protocols-wlr = { version="0.2.0", features=["client"], optional = true } +wayland-protocols = { version="0.32.1", features=["client", "staging", "unstable"], optional = true } +wayland-protocols-wlr = { version="0.3.1", features=["client"], optional = true } x11 = { version = "2.21.0", features = ["xlib", "xtest"], optional = true } ashpd = { version = "0.8", default-features = false, features = ["tokio"], optional = true } reis = { version = "0.2", features = [ "tokio" ], optional = true } @@ -31,7 +31,7 @@ reis = { version = "0.2", features = [ "tokio" ], optional = true } core-graphics = { version = "0.23", features = ["highsierra"] } [target.'cfg(windows)'.dependencies] -windows = { version = "0.54.0", features = [ +windows = { version = "0.57.0", features = [ "Win32_System_LibraryLoader", "Win32_System_Threading", "Win32_Foundation", diff --git a/input-capture/src/windows.rs b/input-capture/src/windows.rs index 28c7826..9c92501 100644 --- a/input-capture/src/windows.rs +++ b/input-capture/src/windows.rs @@ -565,7 +565,7 @@ fn message_thread(ready_tx: mpsc::Sender<()>) { } } else { /* other messages for window_procs */ - TranslateMessage(&msg); + let _ = TranslateMessage(&msg); DispatchMessageW(&msg); } } diff --git a/input-emulation/Cargo.toml b/input-emulation/Cargo.toml index be33ef3..9ba3d2e 100644 --- a/input-emulation/Cargo.toml +++ b/input-emulation/Cargo.toml @@ -17,9 +17,9 @@ tokio = { version = "1.32.0", features = ["io-util", "io-std", "macros", "net", [target.'cfg(all(unix, not(target_os="macos")))'.dependencies] wayland-client = { version="0.31.1", optional = true } -wayland-protocols = { version="0.31.0", features=["client", "staging", "unstable"], optional = true } -wayland-protocols-wlr = { version="0.2.0", features=["client"], optional = true } -wayland-protocols-misc = { version="0.2.0", features=["client"], optional = true } +wayland-protocols = { version="0.32.1", features=["client", "staging", "unstable"], optional = true } +wayland-protocols-wlr = { version="0.3.1", features=["client"], optional = true } +wayland-protocols-misc = { version="0.3.1", features=["client"], optional = true } x11 = { version = "2.21.0", features = ["xlib", "xtest"], optional = true } ashpd = { version = "0.8", default-features = false, features = ["tokio"], optional = true } reis = { version = "0.2", features = [ "tokio" ], optional = true } @@ -29,7 +29,7 @@ core-graphics = { version = "0.23", features = ["highsierra"] } keycode = "0.4.0" [target.'cfg(windows)'.dependencies] -windows = { version = "0.54.0", features = [ +windows = { version = "0.57.0", features = [ "Win32_System_LibraryLoader", "Win32_System_Threading", "Win32_Foundation",