Răsfoiți Sursa

fix(cargo): add `windows-sys` dependency for targeting windows

We use functions in this crate to get stdout handler for
terminal size query.
hehelego 2 ani în urmă
părinte
comite
ddd6850083
2 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  1. 1 0
      Cargo.lock
  2. 3 0
      Cargo.toml

+ 1 - 0
Cargo.lock

@@ -380,6 +380,7 @@ dependencies = [
  "trycmd",
  "trycmd",
  "unicode-width",
  "unicode-width",
  "uzers",
  "uzers",
+ "windows-sys",
  "zoneinfo_compiled",
  "zoneinfo_compiled",
 ]
 ]
 
 

+ 3 - 0
Cargo.toml

@@ -101,6 +101,9 @@ proc-mounts = "0.3"
 [target.'cfg(unix)'.dependencies]
 [target.'cfg(unix)'.dependencies]
 uzers = "0.11.3"
 uzers = "0.11.3"
 
 
+[target.'cfg(target_os = "windows")'.dependencies]
+windows-sys = "0.48.0"
+
 [build-dependencies]
 [build-dependencies]
 chrono = { version = "0.4.31", default-features = false, features = ["clock"] }
 chrono = { version = "0.4.31", default-features = false, features = ["clock"] }