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