[package] name = "unicode-truncate" version = "2.0.0" authors = ["Aetf "] edition = "2018" rust-version = "1.66" homepage = "https://github.com/Aetf/unicode-truncate" repository = "https://github.com/Aetf/unicode-truncate" license = "MIT OR Apache-2.0" keywords = ["text", "width", "unicode", "truncate", "pad"] readme = "README.md" description = """ Unicode-aware algorithm to pad or truncate `str` in terms of displayed width. """ exclude = [ "benches/data/*", ] [dependencies] itertools = { version = "0.13", default-features = false } unicode-segmentation = { version = "1", default-features = false } unicode-width = "0.2" [dev-dependencies] criterion = "0.5" [lib] bench = false [features] default = ["std"] std = [] [[test]] name = "integration" required-features = ["std"] [[bench]] name = "benchmark" harness = false # Improve benchmark consistency [profile.bench] codegen-units = 1 lto = true