[workspace]
resolver = "3"
members = [
    "pinyinchch-model-dag",
    "pinyinchch-model-hmm",
    "pinyinchch-type",
    "xtask",
]

[workspace.package]
version = "0.3.0"
edition = "2024"
license = "MIT OR Apache-2.0"

[workspace.dependencies]
pinyinchch = { path = ".", default-features = false }
pinyinchch-type = { path = "pinyinchch-type", version = "0.3.0", default-features = false }
pinyinchch-model-hmm = { path = "pinyinchch-model-hmm", version = "0.3.0", default-features = false }
pinyinchch-model-dag = { path = "pinyinchch-model-dag", version = "0.3.0", default-features = false }
rkyv = { version = "0.8.15", default-features = true, features = ["aligned"] }
serde = { version = "1", features = ["derive"] }
snafu = { version = "0.9.0", default-features = false, features = ["alloc", "std", "rust_1_81"] }

[package]
name = "pinyinchch"
version.workspace = true
edition.workspace = true
license.workspace = true
keywords = ["Chinese", "Pinyin", "Hanzi", "Conversion", "Tokenize"]
description = "一个拼音转汉字的工具库"
readme = "README.md"
repository = "https://github.com/ixmoyren/pinyinchch"
exclude = ["data/*"]

[features]
default = []
hmm = []
dag = []

[dependencies]
litemap = "0.8.1"
pinyinchch-type = { workspace = true, features = ["rkyv"] }

[dev-dependencies]
pinyinchch = { workspace = true, features = ["hmm", "dag"] }
pinyinchch-model-dag = { workspace = true }
pinyinchch-model-hmm = { workspace = true }
