Просмотр исходного кода

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 лет назад
Родитель
Сommit
ddd6850083
2 измененных файлов с 4 добавлено и 0 удалено
  1. 1 0
      Cargo.lock
  2. 3 0
      Cargo.toml

+ 1 - 0
Cargo.lock

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

+ 3 - 0
Cargo.toml

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