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
|
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.
[package]
edition = "2018"
rust-version = "1.66"
name = "unicode-truncate"
version = "2.0.0"
authors = ["Aetf <aetf@unlimitedcodeworks.xyz>"]
build = false
exclude = ["benches/data/*"]
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Unicode-aware algorithm to pad or truncate `str` in terms of displayed width.
"""
homepage = "https://github.com/Aetf/unicode-truncate"
readme = "README.md"
keywords = [
"text",
"width",
"unicode",
"truncate",
"pad",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Aetf/unicode-truncate"
[profile.bench]
lto = true
codegen-units = 1
[lib]
name = "unicode_truncate"
path = "src/lib.rs"
bench = false
[[test]]
name = "integration"
path = "tests/integration.rs"
required-features = ["std"]
[[test]]
name = "no_std"
path = "tests/no_std.rs"
[dependencies.itertools]
version = "0.13"
default-features = false
[dependencies.unicode-segmentation]
version = "1"
default-features = false
[dependencies.unicode-width]
version = "0.2"
[features]
default = ["std"]
std = []
|