[package]
edition = "2021"
rust-version = "1.75"
name = "cellwidth"
version = "1.0.1"
build = false
exclude = [
"tools/",
"ucd/",
"fuzz/",
"oracles/",
"probe/",
"web/",
"docs/",
".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Terminal display width that gets emoji, CJK and ANSI colour right. Measure, truncate, pad and wrap text so columns actually line up. No dependencies, no_std."
homepage = "https://singhpratech.github.io/cellwidth/"
documentation = "https://docs.rs/cellwidth"
readme = "README.md"
keywords = [
"terminal",
"unicode",
"width",
"cli",
"truncate",
]
categories = [
"command-line-interface",
"text-processing",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/singhpratech/cellwidth"
[package.metadata.docs.rs]
all-features = true
[features]
alloc = []
default = ["std"]
std = ["alloc"]
[lib]
name = "cellwidth"
path = "src/lib.rs"
[[example]]
name = "bench"
path = "examples/bench.rs"
[[example]]
name = "diff_emoji"
path = "examples/diff_emoji.rs"
[[example]]
name = "dump_widths"
path = "examples/dump_widths.rs"
[[example]]
name = "lb_debug"
path = "examples/lb_debug.rs"
[[example]]
name = "table"
path = "examples/table.rs"
[[example]]
name = "table_shrink"
path = "examples/table_shrink.rs"
[[example]]
name = "wrap_shrink"
path = "examples/wrap_shrink.rs"
[[test]]
name = "ansi"
path = "tests/ansi.rs"
[[test]]
name = "compat"
path = "tests/compat.rs"
[[test]]
name = "conformance"
path = "tests/conformance.rs"
[[test]]
name = "fit"
path = "tests/fit.rs"
[[test]]
name = "linebreak"
path = "tests/linebreak.rs"
[[test]]
name = "table"
path = "tests/table.rs"
[[test]]
name = "terminals"
path = "tests/terminals.rs"
[[test]]
name = "width"
path = "tests/width.rs"
[dependencies]
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"