[package]
edition = "2024"
rust-version = "1.85"
name = "hanzi-sort"
version = "0.2.1"
authors = ["Acture <acturea@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sort Chinese text by pinyin or stroke count, with polyphonic overrides and terminal-friendly output"
homepage = "https://github.com/Acture/hanzi-sort"
documentation = "https://docs.rs/hanzi-sort"
readme = "README.crates.md"
keywords = [
"hanzi",
"pinyin",
"sorting",
"cli",
"strokes",
]
categories = [
"command-line-utilities",
"text-processing",
]
license = "AGPL-3.0-only"
repository = "https://github.com/Acture/hanzi-sort"
[features]
collator-jyutping = []
collator-pinyin = []
collator-radical = []
collator-strokes = []
collator-zhuyin = []
default = [
"collator-pinyin",
"collator-strokes",
]
[lib]
name = "hanzi_sort"
path = "src/lib.rs"
[[bin]]
name = "hanzi-sort"
path = "src/main.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[bench]]
name = "common"
path = "benches/common.rs"
[[bench]]
name = "format"
path = "benches/format.rs"
harness = false
[[bench]]
name = "sort"
path = "benches/sort.rs"
harness = false
[dependencies.clap]
version = "4.5.39"
features = [
"default",
"derive",
"env",
]
[dependencies.clap_complete]
version = "4.5"
[dependencies.phf]
version = "0.12.1"
features = ["default"]
[dependencies.serde]
version = "1.0.219"
features = ["derive"]
[dependencies.smallvec]
version = "1.13.2"
[dependencies.toml]
version = "0.9.5"
features = ["default"]
[dependencies.unicode-width]
version = "0.2.0"
[dev-dependencies.criterion]
version = "0.5"
features = [
"plotters",
"cargo_bench_support",
]
default-features = false
[dev-dependencies.proptest]
version = "1.5"
[build-dependencies.csv]
version = "1.3.1"
[build-dependencies.phf_codegen]
version = "0.11.3"