-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathCargo.toml
More file actions
107 lines (95 loc) · 3.02 KB
/
Copy pathCargo.toml
File metadata and controls
107 lines (95 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[package]
name = "zhtw-mcp"
version = "0.1.0"
edition = "2021"
rust-version = "1.91"
description = "MCP server for Traditional Chinese (zh-TW) text linting and normalization"
license = "MIT"
repository = "https://github.com/sysprog21/zhtw-mcp"
homepage = "https://github.com/sysprog21/zhtw-mcp"
categories = ["command-line-utilities", "text-processing", "internationalization"]
keywords = ["mcp", "chinese", "linting", "traditional-chinese", "zh-tw"]
readme = "README.md"
include = ["src/**/*", "assets/ruleset.json", "Cargo.toml", "LICENSE", "README.md", "rust-toolchain.toml"]
[features]
default = ["native", "translate"]
native = [
"dep:dirs",
"dep:env_logger",
"dep:fs2",
"dep:rayon",
"dep:tempfile",
"dep:toml",
]
async-transport = ["native", "dep:tokio"]
browser-wasm = ["dep:console_error_panic_hook", "dep:wasm-bindgen"]
translate = ["dep:ureq", "dep:urlencoding"]
[lib]
crate-type = ["rlib", "cdylib"]
[[bin]]
name = "zhtw-mcp"
path = "src/main.rs"
required-features = ["native"]
[dependencies]
serde = { version = "1", features = ["derive", "rc"] }
serde_json = "1"
aho-corasick = "1"
daachorse = "1"
regex = "1"
blake3 = "1"
rayon = { version = "1", optional = true }
anyhow = "1"
unicode-normalization = "0.1"
pulldown-cmark = { version = "0.13", default-features = false }
log = "0.4"
env_logger = { version = "0.11", default-features = false, optional = true }
dirs = { version = "5.0", optional = true }
tempfile = { version = "3.0", optional = true }
toml = { version = "0.8", optional = true }
tokio = { version = "1", features = ["rt", "io-util", "time", "sync", "macros", "io-std"], optional = true }
ureq = { version = "3", optional = true }
urlencoding = { version = "2", optional = true }
rustc-hash = "2"
fs2 = { version = "0.4", optional = true }
postcard = { version = "1", features = ["alloc"] }
console_error_panic_hook = { version = "0.1", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
[build-dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
postcard = { version = "1", features = ["alloc"] }
[dev-dependencies]
criterion = { version = "0.5", default-features = false }
[[bench]]
name = "scanner"
harness = false
[profile.release]
lto = true
strip = true
# Config for CI release builds via cargo-dist
[profile.dist]
inherits = "release"
[workspace.metadata.dist]
cargo-dist-version = "0.31.0"
ci = "github"
installers = ["shell", "powershell"]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
"x86_64-pc-windows-msvc",
]
unix-archive = ".tar.gz"
checksum = "sha256"
github-build-setup = "../build-setup.yml"
pr-run-mode = "skip"
plan-jobs = ["./main"]
[workspace.metadata.dist.github-custom-runners.aarch64-unknown-linux-gnu]
runner = "ubuntu-24.04"
host = "x86_64-unknown-linux-gnu"
[workspace.metadata.dist.github-custom-runners.aarch64-unknown-linux-musl]
runner = "ubuntu-24.04"
host = "x86_64-unknown-linux-gnu"