[INFO] cloning repository https://github.com/blono/toggle_desktop [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/blono/toggle_desktop" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fblono%2Ftoggle_desktop", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fblono%2Ftoggle_desktop'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 86f22269ec51dc65243b0657ddad0a181441d9fc [INFO] checking blono/toggle_desktop against try#c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f for 2025-12-16-next-solver-global [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fblono%2Ftoggle_desktop" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/blono/toggle_desktop [INFO] finished tweaking git repo https://github.com/blono/toggle_desktop [INFO] tweaked toml for git repo https://github.com/blono/toggle_desktop written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/blono/toggle_desktop on toolchain c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/blono/toggle_desktop already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-2-tc2/source/main/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-2-tc2/source/win/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2024 which implies `resolver = "3"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2024 resolver, specify `workspace.resolver = "3"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded windows-numerics v0.3.0 [INFO] [stderr] Downloaded windows-result v0.4.0 [INFO] [stderr] Downloaded windows-strings v0.5.0 [INFO] [stderr] Downloaded windows-core v0.62.1 [INFO] [stderr] Downloaded windows-interface v0.59.2 [INFO] [stderr] Downloaded windows-future v0.3.1 [INFO] [stderr] Downloaded windows-implement v0.60.1 [INFO] [stderr] Downloaded windows-threading v0.2.0 [INFO] [stderr] Downloaded windows-collections v0.3.1 [INFO] [stderr] Downloaded winresource v0.1.23 [INFO] [stderr] Downloaded windows v0.62.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 546be202f4cdf20120e3ab18c99a5e14c05e5c300dc9c8faf8361a64f6ff31f1 [INFO] running `Command { std: "docker" "start" "-a" "546be202f4cdf20120e3ab18c99a5e14c05e5c300dc9c8faf8361a64f6ff31f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "546be202f4cdf20120e3ab18c99a5e14c05e5c300dc9c8faf8361a64f6ff31f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "546be202f4cdf20120e3ab18c99a5e14c05e5c300dc9c8faf8361a64f6ff31f1", kill_on_drop: false }` [INFO] [stdout] 546be202f4cdf20120e3ab18c99a5e14c05e5c300dc9c8faf8361a64f6ff31f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+c9557a20e5ef2e0e02c29a5fafd850d1b7cf1e4f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d25bffde26d6ee864a8995ac6a0e69614c3eff577fab4a7efbbd2e9f675cba96 [INFO] running `Command { std: "docker" "start" "-a" "d25bffde26d6ee864a8995ac6a0e69614c3eff577fab4a7efbbd2e9f675cba96", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/main/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/win/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2024 which implies `resolver = "3"` [INFO] [stderr] | [INFO] [stderr] = note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] = note: to use the edition 2024 resolver, specify `workspace.resolver = "3"` in the workspace root's manifest [INFO] [stderr] = note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling winresource v0.1.23 [INFO] [stderr] Compiling toggle_desktop_main v0.1.0 (/opt/rustwide/workdir/main) [INFO] [stderr] Compiling toggle_desktop_win v0.1.0 (/opt/rustwide/workdir/win) [INFO] [stderr] error: could not compile `toggle_desktop_main` (bin "toggle_desktop_main") due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find type `GUID` in this scope [INFO] [stdout] --> main/src/main.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | const CLSID_SHELL: GUID = GUID { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDis... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `GUID` in this scope [INFO] [stdout] --> main/src/main.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | const CLSID_SHELL: GUID = GUID { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDis... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IShellDispatch4` in this scope [INFO] [stdout] --> main/src/main.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | ... let shell: IShellDispatch4 = CoCreateInstance(&CLSID_SHELL, None, CLSCTX_SERVER).with_context(|| format!("CoCreateInstance fai... [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:124 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDispatch4}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CLSCTX_SERVER` in this scope [INFO] [stdout] --> main/src/main.rs:25:75 [INFO] [stdout] | [INFO] [stdout] 25 | ... let shell: IShellDispatch4 = CoCreateInstance(&CLSID_SHELL, None, CLSCTX_SERVER).with_context(|| format!("CoCreateInstance fai... [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:97 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDis... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoInitialize` in this scope [INFO] [stdout] --> main/src/main.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let _ = CoInitialize(None); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:67 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDis... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoUninitialize` in this scope [INFO] [stdout] --> main/src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | CoUninitialize(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:81 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDis... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoCreateInstance` in this scope [INFO] [stdout] --> main/src/main.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | ... let shell: IShellDispatch4 = CoCreateInstance(&CLSID_SHELL, None, CLSCTX_SERVER).with_context(|| format!("CoCreateInstance fai... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDis... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stdout] error: cannot find macro `w` in this scope [INFO] [stdout] --> win/src/main.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | let class_name = w!("toggle_desktop"); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `w` in this scope [INFO] [stdout] --> win/src/main.rs:21:60 [INFO] [stdout] | [INFO] [stdout] 21 | ... Ok(CreateWindowExW(WINDOW_EX_STYLE(0), class_name, w!("ToggleDesktop"), WS_OVERLAPPEDWINDOW, 0, 0, 500, 500, None, None, None,... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `GUID` in this scope [INFO] [stdout] --> main/src/main.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | const CLSID_SHELL: GUID = GUID { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDis... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `GUID` in this scope [INFO] [stdout] --> main/src/main.rs:11:27 [INFO] [stdout] | [INFO] [stdout] 11 | const CLSID_SHELL: GUID = GUID { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDis... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `IShellDispatch4` in this scope [INFO] [stdout] --> main/src/main.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | ... let shell: IShellDispatch4 = CoCreateInstance(&CLSID_SHELL, None, CLSCTX_SERVER).with_context(|| format!("CoCreateInstance fai... [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:124 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDispatch4}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `CLSCTX_SERVER` in this scope [INFO] [stdout] --> main/src/main.rs:25:75 [INFO] [stdout] | [INFO] [stdout] 25 | ... let shell: IShellDispatch4 = CoCreateInstance(&CLSID_SHELL, None, CLSCTX_SERVER).with_context(|| format!("CoCreateInstance fai... [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:97 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDis... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoInitialize` in this scope [INFO] [stdout] --> main/src/main.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let _ = CoInitialize(None); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:67 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDis... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoUninitialize` in this scope [INFO] [stdout] --> main/src/main.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | CoUninitialize(); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:81 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDis... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CoCreateInstance` in this scope [INFO] [stdout] --> main/src/main.rs:25:38 [INFO] [stdout] | [INFO] [stdout] 25 | ... let shell: IShellDispatch4 = CoCreateInstance(&CLSID_SHELL, None, CLSCTX_SERVER).with_context(|| format!("CoCreateInstance fai... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> main/src/main.rs:8:49 [INFO] [stdout] | [INFO] [stdout] 7 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 8 | use windows::{core::GUID, Win32::{System::Com::{CoCreateInstance, CoInitialize, CoUninitialize, CLSCTX_SERVER}, UI::Shell::IShellDis... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `toggle_desktop_main` (bin "toggle_desktop_main" test) due to 7 previous errors [INFO] [stdout] error: cannot find macro `w` in this scope [INFO] [stdout] --> win/src/main.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | let class_name = w!("toggle_desktop"); [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `w` in this scope [INFO] [stdout] --> win/src/main.rs:21:60 [INFO] [stdout] | [INFO] [stdout] 21 | ... Ok(CreateWindowExW(WINDOW_EX_STYLE(0), class_name, w!("ToggleDesktop"), WS_OVERLAPPEDWINDOW, 0, 0, 500, 500, None, None, None,... [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope [INFO] [stdout] --> win/src/main.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn create_window() -> Result { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{Cr... [INFO] [stdout] | ^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 8 | pub fn create_window() -> Result { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope [INFO] [stdout] --> win/src/main.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | let winc = WNDCLASSW { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:333 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, TranslateMessage, MSG, SW_SHOWNORMAL, WINDOW_EX_STYLE, WM_CLOSE, WM_DESTROY, WNDCLASSW, W... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope [INFO] [stdout] --> win/src/main.rs:21:81 [INFO] [stdout] | [INFO] [stdout] 21 | ... Ok(CreateWindowExW(WINDOW_EX_STYLE(0), class_name, w!("ToggleDesktop"), WS_OVERLAPPEDWINDOW, 0, 0, 500, 500, None, None, None,... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:344 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, TranslateMessage, MSG, SW_SHOWNORMAL, WINDOW_EX_STYLE, WM_CLOSE, WM_DESTROY, WNDCLASSW, WS_OVERLAPPEDWINDOW}}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope [INFO] [stdout] --> win/src/main.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe extern "system" fn wnd_proc(hwnd: HWND, msg: u32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{C... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> win/src/main.rs:25:67 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe extern "system" fn wnd_proc(hwnd: HWND, msg: u32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:68 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{C... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> win/src/main.rs:25:84 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe extern "system" fn wnd_proc(hwnd: HWND, msg: u32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:51 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{C... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> win/src/main.rs:25:95 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe extern "system" fn wnd_proc(hwnd: HWND, msg: u32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:59 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{C... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNORMAL` in this scope [INFO] [stdout] --> win/src/main.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 45 | let _ = ShowWindow(hwnd, SW_SHOWNORMAL); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:279 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, TranslateMessage, MSG, SW_SHOWNORMAL, W... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope [INFO] [stdout] --> win/src/main.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | if unsafe { RegisterClassW(&winc) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:228 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, S... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WINDOW_EX_STYLE` in this scope [INFO] [stdout] --> win/src/main.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | ... Ok(CreateWindowExW(WINDOW_EX_STYLE(0), class_name, w!("ToggleDesktop"), WS_OVERLAPPEDWINDOW, 0, 0, 500, 500, None, None, None,... [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:294 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, TranslateMessage, MSG, SW_SHOWNORMAL, WINDOW_EX_STYLE, W... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> win/src/main.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | ... Ok(CreateWindowExW(WINDOW_EX_STYLE(0), class_name, w!("ToggleDesktop"), WS_OVERLAPPEDWINDOW, 0, 0, 500, 500, None, None, None,... [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:132 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, D... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope [INFO] [stdout] --> win/src/main.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | let _ = unsafe { DestroyWindow(hwnd) }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:165 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, D... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> win/src/main.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe { PostQuitMessage(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:211 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, R... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stdout] --> win/src/main.rs:34:29 [INFO] [stdout] | [INFO] [stdout] 34 | return unsafe { DefWindowProcW(hwnd, msg, w_param, l_param) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:149 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, D... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope [INFO] [stdout] --> win/src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | LRESULT(0) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:59 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{C... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope [INFO] [stdout] --> win/src/main.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let _ = ShowWindow(hwnd, SW_SHOWNORMAL); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:244 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, T... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UpdateWindow` in this scope [INFO] [stdout] --> win/src/main.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | let _ = UpdateWindow(hwnd); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:92 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{C... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MSG` [INFO] [stdout] --> win/src/main.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | let mut msg = MSG::default(); [INFO] [stdout] | ^^^ use of undeclared type `MSG` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:274 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, TranslateMessage, MSG, S... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> win/src/main.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | while GetMessageW(&mut msg, None, 0, 0).as_bool() { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:198 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, P... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stdout] --> win/src/main.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | let _ = TranslateMessage(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:256 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, TranslateMessage, M... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stdout] --> win/src/main.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | DispatchMessageW(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:180 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, G... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `toggle_desktop_win` (bin "toggle_desktop_win") due to 23 previous errors [INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope [INFO] [stdout] --> win/src/main.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn create_window() -> Result { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{Cr... [INFO] [stdout] | ^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 8 | pub fn create_window() -> Result { [INFO] [stdout] | ++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `WNDCLASSW` in this scope [INFO] [stdout] --> win/src/main.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 10 | let winc = WNDCLASSW { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:333 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, TranslateMessage, MSG, SW_SHOWNORMAL, WINDOW_EX_STYLE, WM_CLOSE, WM_DESTROY, WNDCLASSW, W... [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `WS_OVERLAPPEDWINDOW` in this scope [INFO] [stdout] --> win/src/main.rs:21:81 [INFO] [stdout] | [INFO] [stdout] 21 | ... Ok(CreateWindowExW(WINDOW_EX_STYLE(0), class_name, w!("ToggleDesktop"), WS_OVERLAPPEDWINDOW, 0, 0, 500, 500, None, None, None,... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:344 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, TranslateMessage, MSG, SW_SHOWNORMAL, WINDOW_EX_STYLE, WM_CLOSE, WM_DESTROY, WNDCLASSW, WS_OVERLAPPEDWINDOW}}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `HWND` in this scope [INFO] [stdout] --> win/src/main.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe extern "system" fn wnd_proc(hwnd: HWND, msg: u32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:45 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{C... [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `WPARAM` in this scope [INFO] [stdout] --> win/src/main.rs:25:67 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe extern "system" fn wnd_proc(hwnd: HWND, msg: u32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:68 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{C... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `LPARAM` in this scope [INFO] [stdout] --> win/src/main.rs:25:84 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe extern "system" fn wnd_proc(hwnd: HWND, msg: u32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:51 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{C... [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `LRESULT` in this scope [INFO] [stdout] --> win/src/main.rs:25:95 [INFO] [stdout] | [INFO] [stdout] 25 | unsafe extern "system" fn wnd_proc(hwnd: HWND, msg: u32, w_param: WPARAM, l_param: LPARAM) -> LRESULT { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:59 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{C... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SW_SHOWNORMAL` in this scope [INFO] [stdout] --> win/src/main.rs:45:34 [INFO] [stdout] | [INFO] [stdout] 45 | let _ = ShowWindow(hwnd, SW_SHOWNORMAL); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:279 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, TranslateMessage, MSG, SW_SHOWNORMAL, W... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `RegisterClassW` in this scope [INFO] [stdout] --> win/src/main.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | if unsafe { RegisterClassW(&winc) } == 0 { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:228 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, S... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `WINDOW_EX_STYLE` in this scope [INFO] [stdout] --> win/src/main.rs:21:28 [INFO] [stdout] | [INFO] [stdout] 21 | ... Ok(CreateWindowExW(WINDOW_EX_STYLE(0), class_name, w!("ToggleDesktop"), WS_OVERLAPPEDWINDOW, 0, 0, 500, 500, None, None, None,... [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:294 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, TranslateMessage, MSG, SW_SHOWNORMAL, WINDOW_EX_STYLE, W... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `CreateWindowExW` in this scope [INFO] [stdout] --> win/src/main.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | ... Ok(CreateWindowExW(WINDOW_EX_STYLE(0), class_name, w!("ToggleDesktop"), WS_OVERLAPPEDWINDOW, 0, 0, 500, 500, None, None, None,... [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:132 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, D... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DestroyWindow` in this scope [INFO] [stdout] --> win/src/main.rs:28:30 [INFO] [stdout] | [INFO] [stdout] 28 | let _ = unsafe { DestroyWindow(hwnd) }; [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:165 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, D... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `PostQuitMessage` in this scope [INFO] [stdout] --> win/src/main.rs:31:22 [INFO] [stdout] | [INFO] [stdout] 31 | unsafe { PostQuitMessage(0); } [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:211 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, R... [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DefWindowProcW` in this scope [INFO] [stdout] --> win/src/main.rs:34:29 [INFO] [stdout] | [INFO] [stdout] 34 | return unsafe { DefWindowProcW(hwnd, msg, w_param, l_param) }; [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:149 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, D... [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `LRESULT` in this scope [INFO] [stdout] --> win/src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | LRESULT(0) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:59 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{C... [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `ShowWindow` in this scope [INFO] [stdout] --> win/src/main.rs:45:17 [INFO] [stdout] | [INFO] [stdout] 45 | let _ = ShowWindow(hwnd, SW_SHOWNORMAL); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:244 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, T... [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `UpdateWindow` in this scope [INFO] [stdout] --> win/src/main.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | let _ = UpdateWindow(hwnd); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:92 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{C... [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MSG` [INFO] [stdout] --> win/src/main.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | let mut msg = MSG::default(); [INFO] [stdout] | ^^^ use of undeclared type `MSG` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:274 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, TranslateMessage, MSG, S... [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `GetMessageW` in this scope [INFO] [stdout] --> win/src/main.rs:50:15 [INFO] [stdout] | [INFO] [stdout] 50 | while GetMessageW(&mut msg, None, 0, 0).as_bool() { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:198 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, P... [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `TranslateMessage` in this scope [INFO] [stdout] --> win/src/main.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 51 | let _ = TranslateMessage(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:256 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, GetMessageW, PostQuitMessage, RegisterClassW, ShowWindow, TranslateMessage, M... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `DispatchMessageW` in this scope [INFO] [stdout] --> win/src/main.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | DispatchMessageW(&msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> win/src/main.rs:6:180 [INFO] [stdout] | [INFO] [stdout] 5 | #[cfg(target_os = "windows")] [INFO] [stdout] | --------------------- the item is gated behind the `windows` feature [INFO] [stdout] 6 | use windows::{core::w, Win32::{Foundation::{HWND, LPARAM, LRESULT, WPARAM}, Graphics::Gdi::UpdateWindow, UI::WindowsAndMessaging::{CreateWindowExW, DefWindowProcW, DestroyWindow, DispatchMessageW, G... [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: could not compile `toggle_desktop_win` (bin "toggle_desktop_win" test) due to 23 previous errors [INFO] running `Command { std: "docker" "inspect" "d25bffde26d6ee864a8995ac6a0e69614c3eff577fab4a7efbbd2e9f675cba96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d25bffde26d6ee864a8995ac6a0e69614c3eff577fab4a7efbbd2e9f675cba96", kill_on_drop: false }` [INFO] [stdout] d25bffde26d6ee864a8995ac6a0e69614c3eff577fab4a7efbbd2e9f675cba96