Use is-terminal instead of atty.
Following up on #3696, use the new is-terminal crate to test for a tty rather than having platform-specific logic in Wasmtime. The is-terminal crate has a platform-independent API which takes a handle. This also updates the tree to cap-std 0.24 etc., to avoid depending on multiple versions of io-lifetimes at once, as enforced by the cargo deny check.
This commit is contained in:
@@ -15,20 +15,20 @@ wasi-common = { path = "../", version = "=0.33.0" }
|
||||
wasi-cap-std-sync = { path = "../cap-std-sync", version = "=0.33.0" }
|
||||
wiggle = { path = "../../wiggle", version = "=0.33.0" }
|
||||
tokio = { version = "1.8.0", features = [ "rt", "fs", "time", "io-util", "net", "io-std", "rt-multi-thread"] }
|
||||
cap-std = "0.22.0"
|
||||
cap-std = "0.24.0"
|
||||
anyhow = "1"
|
||||
io-lifetimes = { version = "0.4.4", default-features = false }
|
||||
io-lifetimes = { version = "0.5.0", default-features = false }
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
rustix = "0.31.0"
|
||||
rustix = "0.33.0"
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
winapi = "0.3"
|
||||
lazy_static = "1.4"
|
||||
io-extras = "0.12.0"
|
||||
io-extras = "0.13.0"
|
||||
|
||||
[dev-dependencies]
|
||||
tempfile = "3.1.0"
|
||||
tokio = { version = "1.8.0", features = [ "macros" ] }
|
||||
anyhow = "1"
|
||||
cap-tempfile = "0.22.0"
|
||||
cap-tempfile = "0.24.0"
|
||||
|
||||
Reference in New Issue
Block a user