[package]
edition = "2021"
rust-version = "1.70"
name = "humfmt"
version = "0.6.0"
authors = ["MuXolotl"]
build = false
exclude = [
".github/**",
".gitignore",
"TODO.md",
"tools/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ergonomic human-readable formatting toolkit for Rust"
documentation = "https://docs.rs/humfmt"
readme = "README.md"
keywords = [
"format",
"humanize",
"display",
"number",
"numeric",
]
categories = [
"value-formatting",
"text-processing",
]
license = "MIT"
repository = "https://github.com/MuXolotl/humfmt"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
chrono = ["dep:chrono"]
default = ["std"]
std = []
time = ["dep:time"]
[lib]
name = "humfmt"
path = "src/lib.rs"
[[example]]
name = "smoke"
path = "examples/smoke.rs"
[[test]]
name = "ago_format"
path = "tests/ago_format.rs"
[[test]]
name = "bytes_format"
path = "tests/bytes_format.rs"
[[test]]
name = "chrono_integration"
path = "tests/chrono_integration.rs"
[[test]]
name = "duration_format"
path = "tests/duration_format.rs"
[[test]]
name = "list_format"
path = "tests/list_format.rs"
[[test]]
name = "number_format"
path = "tests/number_format.rs"
[[test]]
name = "ordinal_format"
path = "tests/ordinal_format.rs"
[[test]]
name = "percent_format"
path = "tests/percent_format.rs"
[[test]]
name = "property_invariants"
path = "tests/property_invariants.rs"
[[test]]
name = "time_integration"
path = "tests/time_integration.rs"
[[bench]]
name = "formatter_benches"
path = "benches/formatter_benches.rs"
harness = false
[dependencies.chrono]
version = "0.4"
optional = true
default-features = false
[dependencies.time]
version = ">=0.3, <0.3.42"
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.proptest]
version = "1"