forked from console-rs/console
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (61 loc) · 1.63 KB
/
Copy pathCargo.toml
File metadata and controls
72 lines (61 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[package]
name = "console"
description = "A terminal and console abstraction for Rust"
version = "0.16.1"
keywords = ["cli", "terminal", "colors", "console", "ansi"]
license = "MIT"
edition = "2021"
homepage = "https://github.com/console-rs/console"
repository = "https://github.com/console-rs/console"
documentation = "https://docs.rs/console"
readme = "README.md"
rust-version = "1.71"
[features]
default = ["unicode-width", "ansi-parsing", "std"]
std = ["dep:libc", "dep:once_cell", "alloc"]
alloc = []
windows-console-colors = ["ansi-parsing"]
ansi-parsing = []
[dependencies]
libc = { version = "0.2.99", optional = true }
once_cell = { version = "1.8", optional = true }
unicode-width = { version = "0.2", optional = true }
[target.'cfg(windows)'.dependencies]
encode_unicode = "1"
[target.'cfg(windows)'.dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_System_Console",
"Win32_Storage_FileSystem",
"Win32_UI_Input_KeyboardAndMouse",
]
[dev-dependencies]
# Pick a setup for proptest that works with wasi
proptest = { version = "1.0.0", default-features = false, features = [
"std",
"bit-set",
"break-dead-code",
] }
regex = "1.4.2"
[[example]]
name = "colors"
required-features = ["std"]
[[example]]
name = "colors256"
required-features = ["std"]
[[example]]
name = "cursor_at"
required-features = ["std"]
[[example]]
name = "keyboard"
required-features = ["std"]
[[example]]
name = "term"
required-features = ["std"]
## These are currently disabled. If you want to play around with the benchmarks
## uncommit this.
#criterion = "0.3.5"
#[[bench]]
#name = "ansi_parser"
#harness = false