Bläddra i källkod

fix(windows): fix the windows build

Fix the windows build by adding features that were feature gated in the update
of windows-sys from 0.48.0 -> 0.52.0.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Co-authored-by: Steven Davies <github@steev.me.uk>
Christina Sørensen 2 år sedan
förälder
incheckning
3fe76fac7d
1 ändrade filer med 4 tillägg och 1 borttagningar
  1. 4 1
      Cargo.toml

+ 4 - 1
Cargo.toml

@@ -104,7 +104,10 @@ proc-mounts = "0.3"
 uzers = "0.11.3"
 
 [target.'cfg(target_os = "windows")'.dependencies]
-windows-sys = "0.52.0"
+windows-sys = { version = "0.52.0", features = [
+  "Win32_System_Console",
+  "Win32_Foundation",
+] }
 
 [build-dependencies]
 chrono = { version = "0.4.31", default-features = false, features = ["clock"] }