Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
131 lines (127 loc) · 4.74 KB
/
Copy pathCargo.toml
File metadata and controls
131 lines (127 loc) · 4.74 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
[workspace]
resolver = "3"
members = [
"apps/desktop/src-tauri",
"crates/tf-core",
"crates/tf-plugin-api",
"crates/xtask",
"plugins/*/backend",
]
[workspace.package]
version = "0.1.7"
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-plugin-api = { path = "crates/tf-plugin-api" }
tfp-archive = { path = "plugins/archive/backend" }
tfp-background-remover = { path = "plugins/background-remover/backend" }
tfp-base-converter = { path = "plugins/base-converter/backend" }
tfp-batch-rename = { path = "plugins/batch-rename/backend" }
tfp-certificate = { path = "plugins/certificate/backend" }
tfp-color = { path = "plugins/color/backend" }
tfp-crypto = { path = "plugins/crypto/backend" }
tfp-cron = { path = "plugins/cron/backend" }
tfp-csv-viewer = { path = "plugins/csv-viewer/backend" }
tfp-curl-converter = { path = "plugins/curl-converter/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-encoder = { path = "plugins/encoder/backend" }
tfp-format-converter = { path = "plugins/format-converter/backend" }
tfp-hash = { path = "plugins/hash/backend" }
tfp-http-client = { path = "plugins/http-client/backend" }
tfp-image-converter = { path = "plugins/image-converter/backend" }
tfp-image-compressor = { path = "plugins/image-compressor/backend" }
tfp-image-info = { path = "plugins/image-info/backend" }
tfp-ip-calculator = { path = "plugins/ip-calculator/backend" }
tfp-json-formatter = { path = "plugins/json-formatter/backend" }
tfp-json-to-code = { path = "plugins/json-to-code/backend" }
tfp-jwt = { path = "plugins/jwt/backend" }
tfp-local-server = { path = "plugins/local-server/backend" }
tfp-log-viewer = { path = "plugins/log-viewer/backend" }
tfp-markdown-editor = { path = "plugins/markdown-editor/backend" }
tfp-mock-data = { path = "plugins/mock-data/backend" }
tfp-ocr = { path = "plugins/ocr/backend" }
tfp-password = { path = "plugins/password/backend" }
tfp-pdf = { path = "plugins/pdf/backend" }
tfp-text-encoding = { path = "plugins/text-encoding/backend" }
tfp-icon-generator = { path = "plugins/icon-generator/backend" }
tfp-hex-viewer = { path = "plugins/hex-viewer/backend" }
tfp-folder-compare = { path = "plugins/folder-compare/backend" }
tfp-port-manager = { path = "plugins/port-manager/backend" }
tfp-qrcode = { path = "plugins/qrcode/backend" }
tfp-regex = { path = "plugins/regex/backend" }
tfp-ssh-key = { path = "plugins/ssh-key/backend" }
tfp-sql-formatter = { path = "plugins/sql-formatter/backend" }
tfp-system-monitor = { path = "plugins/system-monitor/backend" }
tfp-text-diff = { path = "plugins/text-diff/backend" }
tfp-text-tools = { path = "plugins/text-tools/backend" }
tfp-timestamp = { path = "plugins/timestamp/backend" }
tfp-unicode = { path = "plugins/unicode/backend" }
tfp-unit-converter = { path = "plugins/unit-converter/backend" }
tfp-uuid = { path = "plugins/uuid/backend" }
tfp-websocket = { path = "plugins/websocket/backend" }
tfp-xml-formatter = { path = "plugins/xml-formatter/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.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