Skip to content

Commit f004e3a

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

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

server/Cargo.toml

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

0 commit comments

Comments
 (0)