-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCargo.toml
46 lines (38 loc) · 944 Bytes
/
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
[package]
name = "unicode-truncate"
version = "2.0.0"
authors = ["Aetf <[email protected]>"]
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