From 7bc29f8d2c598636a8a1012c626d64ad2124d51b Mon Sep 17 00:00:00 2001 From: Kevin Xiao Date: Sun, 18 Aug 2024 21:39:11 -0700 Subject: [PATCH] Add missing `processenv` feature to winapi dependency Fixes this error when compiling on Windows: ``` error[E0432]: unresolved import `winapi::um::processenv` --> C:\Users\kvnxiao\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ludusavi-0.25.0\src/main.rs:94:9 | 94 | processenv::SetStdHandle, | ^^^^^^^^^^ could not find `processenv` in `um` | note: found an item that was configured out --> C:\Users\kvnxiao\.cargo\registry\src\index.crates.io-6f17d22bba15001f\winapi-0.3.9\src\um\mod.rs:190:40 | 190 | #[cfg(feature = "processenv")] pub mod processenv; | ^^^^^^^^^^ = note: the item is gated behind the `processenv` feature For more information about this error, try `rustc --explain E0432`. error: could not compile `ludusavi` (bin "ludusavi") due to 1 previous error ``` --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f0f728e..4d8851d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -56,7 +56,7 @@ zip = "0.6.6" [target.'cfg(windows)'.dependencies] known-folders = "1.1.0" winreg = "0.52.0" -winapi = { version = "0.3.9", features = ["wincon"], default-features = false } +winapi = { version = "0.3.9", features = ["wincon", "processenv"], default-features = false } [target.'cfg(windows)'.build-dependencies] winres = "0.1.12"