Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
128 lines (123 loc) · 4.09 KB
/
Copy pathCargo.toml
File metadata and controls
128 lines (123 loc) · 4.09 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
[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.5"
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-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
# 模型推理与图像编解码是热点:开发构建也要优化,发布构建不按体积优化这些 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
[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
[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" }