libchai 0.3.9

汉字编码优化算法
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 = "2018"
name = "libchai"
version = "0.3.9"
authors = ["Songchen Tan <i@tansongchen.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "chai"
description = "汉字编码优化算法"
homepage = "https://chaifen.app"
documentation = "https://lib.chaifen.app"
readme = "README.md"
license = "GPL-3.0"
repository = "https://github.com/hanzi-chai/libchai"

[package.metadata.wasm-pack.profile.release]
wasm-opt = false

[features]
default = [
    "console_error_panic_hook",
    "server",
]
server = [
    "dep:axum",
    "dep:tokio",
    "dep:tower",
    "dep:tower-http",
    "dep:futures-util",
    "dep:async-stream",
    "dep:uuid",
]

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

[[bin]]
name = "chai"
path = "src/main.rs"
required-features = ["server"]

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

[dependencies.async-stream]
version = "^0.3"
optional = true

[dependencies.axum]
version = "^0.8.8"
features = ["macros"]
optional = true

[dependencies.chrono]
version = "0.4.43"

[dependencies.clap]
version = "4.0"
features = ["derive"]

[dependencies.console_error_panic_hook]
version = "0.1.7"
optional = true

[dependencies.csv]
version = "1.3.0"

[dependencies.futures-util]
version = "^0.3.31"
optional = true

[dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]

[dependencies.indexmap]
version = "2.10.0"
features = ["serde"]

[dependencies.js-sys]
version = "0.3.66"

[dependencies.rand]
version = "0.9"

[dependencies.regex]
version = "1.10.2"

[dependencies.rustc-hash]
version = "2.0.0"

[dependencies.serde]
version = "1.0.193"
features = ["derive"]

[dependencies.serde-wasm-bindgen]
version = "0.6.3"

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_with]
version = "3.4.0"

[dependencies.serde_yaml]
version = "0.9.27"

[dependencies.tokio]
version = "^1.0"
features = ["full"]
optional = true

[dependencies.tower]
version = "^0.5"
optional = true

[dependencies.tower-http]
version = "^0.6.8"
features = [
    "cors",
    "fs",
    "timeout",
]
optional = true

[dependencies.tracing]
version = "^0.1"

[dependencies.tracing-subscriber]
version = "^0.3"

[dependencies.uuid]
version = "^1.17.0"
features = ["v4"]
optional = true

[dependencies.wasm-bindgen]
version = "0.2.84"

[dependencies.web-sys]
version = "0.3"
features = ["console"]

[dependencies.web-time]
version = "1.1.0"

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[profile.benchmark]
opt-level = 3
inherits = "dev"

[profile.release]
strip = true