wubi 0.2.0

Self-developed Wubi 86 encoder, dictionary, and dataset (PHF + FST, WASM-ready).
Documentation
# 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"
rust-version = "1.85"
name = "wubi"
version = "0.2.0"
authors = ["GOLIA K.K."]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Self-developed Wubi 86 encoder, dictionary, and dataset (PHF + FST, WASM-ready)."
homepage = "https://github.com/goliajp/wubi"
documentation = "https://docs.rs/wubi"
readme = "README.md"
keywords = [
    "wubi",
    "ime",
    "chinese",
    "input-method",
    "fst",
]
categories = [
    "text-processing",
    "internationalization",
    "encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/goliajp/wubi"
resolver = "2"

[features]
default = []
tools = [
    "dep:ureq",
    "dep:aho-corasick",
    "dep:toml",
    "dep:sha2",
    "dep:serde",
    "dep:flate2",
    "dep:bzip2-rs",
]

[lib]
name = "wubi"
crate-type = [
    "rlib",
    "cdylib",
    "staticlib",
]
path = "src/lib.rs"

[[bin]]
name = "wubi-auto-decomp"
path = "tools/auto_decomp.rs"

[[bin]]
name = "wubi-build-weights"
path = "tools/build_weights.rs"
required-features = ["tools"]

[[bin]]
name = "wubi-fetch-corpus"
path = "tools/fetch_corpus.rs"
required-features = ["tools"]

[[bin]]
name = "wubi-gen-dict"
path = "tools/gen_dict.rs"

[[bin]]
name = "wubi-import-phrases"
path = "tools/import_phrases.rs"

[[bin]]
name = "wubi-import-simplified"
path = "tools/import_simplified.rs"

[[bin]]
name = "wubi-verify"
path = "tools/verify.rs"

[[test]]
name = "proptest_l0"
path = "tests/proptest_l0.rs"

[[test]]
name = "proptest_layer"
path = "tests/proptest_layer.rs"

[[bench]]
name = "lookup"
path = "benches/lookup.rs"
harness = false

[dependencies.aho-corasick]
version = "1"
optional = true

[dependencies.bzip2-rs]
version = "0.1"
optional = true

[dependencies.flate2]
version = "1"
features = ["rust_backend"]
optional = true
default-features = false

[dependencies.fst]
version = "0.4"
default-features = false

[dependencies.phf]
version = "0.11"
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.toml]
version = "0.8"
optional = true

[dependencies.ureq]
version = "2"
optional = true

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.proptest]
version = "1"

[build-dependencies.fst]
version = "0.4"
default-features = false

[build-dependencies.phf_codegen]
version = "0.11"