From ea6f97e15e012684eac0ba6a65b75f065d2c18f8 Mon Sep 17 00:00:00 2001 From: Liam Murphy Date: Fri, 1 Jul 2022 17:49:40 +1000 Subject: [PATCH] Enable needed features of winapi Previously, `softbuffer` wouldn't successfully build on its own on Windows; the examples only worked because dependencies happened to enable the needed features. --- Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7d19c86..9775c54 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,8 +22,9 @@ tempfile = "3.3.0" wayland-client = {version = "0.29", features = ["use_system_lib"], default_features = false} x11-dl = "2.19.1" -[target.'cfg(target_os = "windows")'.dependencies] -winapi = "0.3.9" +[target.'cfg(target_os = "windows")'.dependencies.winapi] +version = "0.3.9" +features = ["windef", "wingdi", "winuser"] [target.'cfg(target_os = "macos")'.dependencies] cocoa = "0.24.0"