-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathCargo.toml
76 lines (66 loc) · 2.13 KB
/
Cargo.toml
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
73
74
75
76
[package]
name = "comfy-table"
description = "An easy to use library for building beautiful tables with automatic content wrapping"
version = "7.1.3"
authors = ["Arne Beer <[email protected]>"]
homepage = "https://github.com/nukesor/comfy-table"
repository = "https://github.com/nukesor/comfy-table"
documentation = "https://docs.rs/comfy-table/"
license = "MIT"
keywords = ["table", "terminal", "unicode"]
readme = "README.md"
rust-version = "1.64"
edition = "2021"
[badges]
maintenance = { status = "actively-developed" }
[[bench]]
harness = false
name = "build_tables"
[[bench]]
harness = false
name = "build_large_table"
[[example]]
name = "no_tty"
path = "examples/readme_table_no_tty.rs"
[[example]]
name = "readme_table"
path = "examples/readme_table.rs"
[[example]]
name = "inner_style"
path = "examples/inner_style.rs"
required-features = ["custom_styling"]
[features]
# For more info about these flags, please check the README.
# Everything's explained over there.
custom_styling = ["ansi-str", "console", "tty"]
default = ["tty"]
reexport_crossterm = ["tty"]
tty = ["crossterm"]
# ---- DEVELOPMENT FLAGS ----
# This flag is for comfy-table development debugging!
# You usually don't need this as a user of the library.
debug = []
# This feature is used to for integration testing of comfy_table.
# It exposes normally unexposed internal functionality for easier testing.
# DON'T USE. You opt in for breaking changes, as the internal API might change on minor/patch versions.
integration_test = []
[dependencies]
ansi-str = { version = "0.8", optional = true }
console = { version = "0.15", optional = true }
strum = "0.26"
strum_macros = "0.26"
unicode-width = "0.2"
[dev-dependencies]
criterion = "0.5"
pretty_assertions = "1"
proptest = "1"
rand = "0.8"
rstest = "0.24"
# We don't need any of the default features for crossterm.
# However, the windows build needs the windows feature enabled.
[target.'cfg(not(windows))'.dependencies]
crossterm = { version = "0.28", optional = true, default-features = false }
[target.'cfg(windows)'.dependencies]
crossterm = { version = "0.28", optional = true, default-features = false, features = [
"windows",
] }