Skip to content

Commit ac946d7

Browse files
smallerqiuCopilot
andauthored
Update client/Cargo.toml
Co-authored-by: Copilot <[email protected]>
1 parent a86e67f commit ac946d7

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

client/Cargo.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,4 @@ assets = [
7676
{ source = "target/release/stat_client", dest = "/opt/ServerStatus/stat_client", mode = "0755" },
7777
{ source = "LICENSE", dest = "/usr/share/doc/ServerStatus/LICENSE", doc = true, mode = "0644" },
7878
{ source = "../systemd/stat_client.service", dest = "/opt/ServerStatus/stat_client.service", config = true, mode = "0644" },
79-
]
80-
81-
82-
[profile.release]
83-
opt-level = "z" # 优化文件大小 (s 是优化速度和体积,z 是极致体积)
84-
lto = true # 开启链接时优化 (跨模块删除无用代码)
85-
codegen-units = 1 # 限制并行编译单元,增加优化空间
86-
panic = "abort" # 发生 panic 时直接退出,不包含回溯栈信息 (减小体积明显)
87-
strip = true # 自动从生成的二进制文件中剥离符号信息
79+
]

0 commit comments

Comments
 (0)