# 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 = "2024"
name = "pinyinchch"
version = "0.3.0"
build = false
exclude = ["data/*"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "一个拼音转汉字的工具库"
readme = "README.md"
keywords = [
    "Chinese",
    "Pinyin",
    "Hanzi",
    "Conversion",
    "Tokenize",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ixmoyren/pinyinchch"

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

[lib]
name = "pinyinchch"
path = "src/lib.rs"

[[example]]
name = "anthoer_hmm_example"
path = "examples/anthoer_hmm_example.rs"

[[example]]
name = "dag_example"
path = "examples/dag_example.rs"

[[example]]
name = "hmm_example"
path = "examples/hmm_example.rs"

[dependencies.litemap]
version = "0.8.1"

[dependencies.pinyinchch-type]
version = "0.3.0"
features = ["rkyv"]
default-features = false

[dev-dependencies.pinyinchch-model-dag]
version = "0.3.0"
default-features = false

[dev-dependencies.pinyinchch-model-hmm]
version = "0.3.0"
default-features = false
