From b79643ad7b52e304077ded1708ae4d2622d67c31 Mon Sep 17 00:00:00 2001 From: Tim 'Piepmatz' Hesse Date: Thu, 21 Nov 2024 23:10:28 +0100 Subject: [PATCH] pull rustix only for unix this allows to build this library in wasm --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d64fffa..cb15c64 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "terminal_size" -version = "0.4.0" +version = "0.4.1" authors = ["Andrew Chin "] description = "Gets the size of your Linux or Windows terminal" documentation = "https://docs.rs/terminal_size" @@ -11,7 +11,7 @@ edition = "2021" rust-version = "1.63" -[target.'cfg(not(windows))'.dependencies] +[target.'cfg(unix)'.dependencies] rustix = { version = "0.38.0", features = ["termios"] } [target.'cfg(windows)'.dependencies.windows-sys]