| 1 |
[package] |
| 2 |
name = "comfy-table" |
| 3 |
description = "An easy to use library for building beautiful tables with automatic content wrapping" |
| 4 |
version = "7.2.2" |
| 5 |
authors = ["Arne Beer <[email protected]>"] |
| 6 |
homepage = "https://github.com/nukesor/comfy-table" |
| 7 |
repository = "https://github.com/nukesor/comfy-table" |
| 8 |
documentation = "https://docs.rs/comfy-table/" |
| 9 |
license = "MIT" |
| 10 |
keywords = ["table", "terminal", "unicode"] |
| 11 |
readme = "README.md" |
| 12 |
edition = "2024" |
| 13 |
|
| 14 |
[badges] |
| 15 |
maintenance = { status = "actively-developed" } |
| 16 |
|
| 17 |
[[bench]] |
| 18 |
harness = false |
| 19 |
name = "build_tables" |
| 20 |
|
| 21 |
[[bench]] |
| 22 |
harness = false |
| 23 |
name = "build_large_table" |
| 24 |
|
| 25 |
[[example]] |
| 26 |
name = "no_tty" |
| 27 |
path = "examples/readme_table_no_tty.rs" |
| 28 |
|
| 29 |
[[example]] |
| 30 |
name = "readme_table" |
| 31 |
path = "examples/readme_table.rs" |
| 32 |
|
| 33 |
[[example]] |
| 34 |
name = "inner_style" |
| 35 |
path = "examples/inner_style.rs" |
| 36 |
required-features = ["custom_styling"] |
| 37 |
|
| 38 |
[features] |
| 39 |
# For more info about these flags, please check the README. |
| 40 |
# Everything's explained over there. |
| 41 |
custom_styling = ["dep:ansi-str", "dep:console", "tty"] |
| 42 |
default = ["tty"] |
| 43 |
reexport_crossterm = ["tty"] |
| 44 |
tty = ["dep:crossterm"] |
| 45 |
# ---- DEVELOPMENT FLAGS ---- |
| 46 |
# This flag is for comfy-table development debugging! |
| 47 |
# You usually don't need this as a user of the library. |
| 48 |
_debug = [] |
| 49 |
# This feature is used to for integration testing of comfy_table. |
| 50 |
# It exposes normally unexposed internal functionality for easier testing. |
| 51 |
# DON'T USE. You opt in for breaking changes, as the internal API might change on minor/patch versions. |
| 52 |
_integration_test = [] |
| 53 |
|
| 54 |
[dependencies] |
| 55 |
unicode-segmentation = "1" |
| 56 |
unicode-width = "0.2" |
| 57 |
|
| 58 |
# Optional dependencies |
| 59 |
ansi-str = { version = "0.9", optional = true } |
| 60 |
console = { version = "0.16", optional = true } |
| 61 |
|
| 62 |
[dev-dependencies] |
| 63 |
criterion = "0.8" |
| 64 |
pretty_assertions = "1" |
| 65 |
proptest = "1" |
| 66 |
rand = "0.9" |
| 67 |
rstest = "0.26" |
| 68 |
|
| 69 |
# We don't need any of the default features for crossterm. |
| 70 |
# However, the windows build needs the windows feature enabled. |
| 71 |
[target.'cfg(not(windows))'.dependencies] |
| 72 |
crossterm = { version = "0.29", optional = true, default-features = false } |
| 73 |
[target.'cfg(windows)'.dependencies] |
| 74 |
crossterm = { version = "0.29", optional = true, default-features = false, features = [ |
| 75 |
"windows", |
| 76 |
] } |