From 1970e2ccb10fb7bca7e859d6ba5d00d2c268bf47 Mon Sep 17 00:00:00 2001 From: Varphone Wong Date: Tue, 13 Feb 2024 19:27:58 +0800 Subject: [PATCH] `eframe`: Add `winuser` feature to `winapi` to fix unresolved import (#4037) After merging PR #4036, build errors occurred in eframe-related applications: ```log error[E0432]: unresolved import `winapi::um::winuser` --> crates\eframe\src\native\app_icon.rs:83:9 | 83 | use winapi::um::winuser; | ^^^^^^^^^^^^^^^^^^^ no `winuser` in `um` | note: found an item that was configured out --> C:\Users\Varphone\.cargo\registry\src\index.crates.io-6f17d22bba15001f\winapi-0.3.9\src\um\mod.rs:290:37 | 290 | #[cfg(feature = "winuser")] pub mod winuser; | ^^^^^^^ = note: the item is gated behind the `winuser` feature For more information about this error, try `rustc --explain E0432`. error: could not compile `eframe` (lib) due to previous error warning: build failed, waiting for other jobs to finish... ``` --- crates/eframe/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/eframe/Cargo.toml b/crates/eframe/Cargo.toml index 27d7994edf3..092e332c791 100644 --- a/crates/eframe/Cargo.toml +++ b/crates/eframe/Cargo.toml @@ -183,7 +183,7 @@ objc = "0.2.7" # windows: [target.'cfg(any(target_os = "windows"))'.dependencies] -winapi = "0.3.9" +winapi = { version = "0.3.9", features = ["winuser"] } # ------------------------------------------- # web: