1[package]
2name = "is-terminal"
3version = "0.4.12"
4authors = [
5 "softprops <d.tangren@gmail.com>",
6 "Dan Gohman <dev@sunfishcode.online>"
7]
8description = "Test whether a given stream is a terminal"
9documentation = "https://docs.rs/is-terminal"
10repository = "https://github.com/sunfishcode/is-terminal"
11keywords = ["terminal", "tty", "isatty"]
12categories = ["command-line-interface"]
13license = "MIT"
14edition = "2018"
15include = ["src", "build.rs", "Cargo.toml", "COPYRIGHT", "LICENSE*", "/*.md"]
16rust-version = "1.63"
17
18[target.'cfg(any(unix, target_os = "wasi"))'.dependencies]
19libc = "0.2"
20
21[target.'cfg(target_os = "hermit")'.dependencies]
22hermit-abi = "0.3.0"
23
24[target.'cfg(windows)'.dependencies.windows-sys]
25version = "0.52.0"
26features = [
27 "Win32_Foundation",
28 "Win32_Storage_FileSystem",
29 "Win32_System_Console",
30]
31
32[dev-dependencies]
33atty = "0.2.14"
34
35[target.'cfg(any(unix, target_os = "wasi"))'.dev-dependencies]
36rustix = { version = "0.38.0", features = ["termios"] }
37libc = "0.2.110"
38
39[target.'cfg(not(any(windows, target_os = "hermit", target_os = "unknown")))'.dev-dependencies]
40rustix = { version = "0.38.0", features = ["stdio"] }
41
42[target.'cfg(windows)'.dev-dependencies]
43tempfile = "3"
44