Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
164 lines (158 loc) · 5.05 KB
/
Copy pathCargo.toml
File metadata and controls
164 lines (158 loc) · 5.05 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[workspace]
resolver = "3"
members = [
"apps/cli",
"apps/desktop/src-tauri",
"crates/tf-core",
"crates/tf-host",
"crates/tf-plugin-api",
"crates/tf-package",
"crates/tf-plugin-guest",
"crates/tf-net",
"crates/tf-wasm",
"crates/xtask",
"plugins/*/backend",
"market/*/backend",
]
exclude = [
"crates/tf-wasm/fixture",
"market/xml-formatter/backend/vendor/sxd-xpath",
"market/xlsx-viewer/backend/vendor/typed-path",
]
[workspace.package]
version = "0.2.6"
edition = "2024"
license = "MIT"
authors = ["qianmoQ"]
[workspace.dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["preserve_order", "arbitrary_precision"] }
thiserror = "2"
tf-core = { path = "crates/tf-core" }
tf-host = { path = "crates/tf-host" }
tf-plugin-api = { path = "crates/tf-plugin-api" }
tf-net = { path = "crates/tf-net" }
tf-package = { path = "crates/tf-package" }
tf-wasm = { path = "crates/tf-wasm" }
tfp-ai-writer = { path = "plugins/ai-writer/backend" }
tfp-archive = { path = "plugins/archive/backend" }
tfp-background-remover = { path = "plugins/background-remover/backend" }
tfp-barcode = { path = "plugins/barcode/backend" }
tfp-batch-rename = { path = "plugins/batch-rename/backend" }
tfp-certificate = { path = "plugins/certificate/backend" }
tfp-dns-lookup = { path = "plugins/dns-lookup/backend" }
tfp-disk-usage = { path = "plugins/disk-usage/backend" }
tfp-duplicate-finder = { path = "plugins/duplicate-finder/backend" }
tfp-hash = { path = "plugins/hash/backend" }
tfp-image-compressor = { path = "plugins/image-compressor/backend" }
tfp-input-stats = { path = "plugins/input-stats/backend" }
tfp-local-server = { path = "plugins/local-server/backend" }
tfp-ocr = { path = "plugins/ocr/backend" }
tfp-text-encoding = { path = "plugins/text-encoding/backend" }
tfp-icon-generator = { path = "plugins/icon-generator/backend" }
tfp-folder-compare = { path = "plugins/folder-compare/backend" }
tfp-doc-converter = { path = "plugins/doc-converter/backend" }
tfp-context-menu = { path = "plugins/context-menu/backend" }
tfp-port-manager = { path = "plugins/port-manager/backend" }
tfp-proxy-inspector = { path = "plugins/proxy-inspector/backend" }
tfp-qrcode = { path = "plugins/qrcode/backend" }
tfp-ssh-key = { path = "plugins/ssh-key/backend" }
tfp-system-monitor = { path = "plugins/system-monitor/backend" }
tfp-websocket = { path = "plugins/websocket/backend" }
[profile.release]
codegen-units = 1
lto = true
opt-level = "s"
panic = "abort"
strip = true
[profile.dev]
# Keep source locations in backtraces without retaining full debug information.
debug = "line-tables-only"
incremental = false
# 模型推理与图像编解码是热点:开发构建也要优化,发布构建不按体积优化这些 crate
[profile.dev.package.tract-core]
opt-level = 3
[profile.dev.package.tract-data]
opt-level = 3
[profile.dev.package.tract-hir]
opt-level = 3
[profile.dev.package.tract-linalg]
opt-level = 3
[profile.dev.package.tract-nnef]
opt-level = 3
[profile.dev.package.tract-onnx]
opt-level = 3
[profile.dev.package.tract-onnx-opl]
opt-level = 3
# 本地语言模型推理(candle 与 gemm)
[profile.dev.package.candle-core]
opt-level = 3
[profile.dev.package.candle-nn]
opt-level = 3
[profile.dev.package.candle-transformers]
opt-level = 3
[profile.dev.package.gemm]
opt-level = 3
[profile.dev.package.gemm-common]
opt-level = 3
[profile.dev.package.gemm-f32]
opt-level = 3
[profile.dev.package.gemm-f16]
opt-level = 3
[profile.dev.package.image]
opt-level = 3
[profile.dev.package.png]
opt-level = 3
[profile.dev.package.fdeflate]
opt-level = 3
[profile.dev.package.miniz_oxide]
opt-level = 3
[profile.dev.package.zune-jpeg]
opt-level = 3
# 图标生成在本 crate 内实例化 image 的泛型缩放,未优化时测试很慢
[profile.dev.package.tfp-icon-generator]
opt-level = 3
[profile.dev.package.tfm-image-palette]
opt-level = 3
[profile.release.package.tract-core]
opt-level = 3
[profile.release.package.tract-data]
opt-level = 3
[profile.release.package.tract-hir]
opt-level = 3
[profile.release.package.tract-linalg]
opt-level = 3
[profile.release.package.tract-nnef]
opt-level = 3
[profile.release.package.tract-onnx]
opt-level = 3
[profile.release.package.tract-onnx-opl]
opt-level = 3
# 本地语言模型推理(candle 与 gemm)
[profile.release.package.candle-core]
opt-level = 3
[profile.release.package.candle-nn]
opt-level = 3
[profile.release.package.candle-transformers]
opt-level = 3
[profile.release.package.gemm]
opt-level = 3
[profile.release.package.gemm-common]
opt-level = 3
[profile.release.package.gemm-f32]
opt-level = 3
[profile.release.package.gemm-f16]
opt-level = 3
[profile.release.package.image]
opt-level = 3
[profile.release.package.png]
opt-level = 3
[profile.release.package.fdeflate]
opt-level = 3
[profile.release.package.miniz_oxide]
opt-level = 3
[profile.release.package.zune-jpeg]
opt-level = 3
[patch.crates-io]
# std::os::wasi 在 wasm32-wasip2 上仍是不稳定特性,原版需要 nightly 才能编译(见 vendor 内 UPSTREAM.md)
typed-path = { path = "market/xlsx-viewer/backend/vendor/typed-path" }