mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2024-11-23 19:49:20 +08:00
Borrow Cargo.toml's profile.release
from RustDesk for better binary (#481)
This commit is contained in:
parent
2ac3169d77
commit
4c74586ce0
10
Cargo.toml
10
Cargo.toml
@ -58,3 +58,13 @@ hbb_common = { path = "libs/hbb_common" }
|
||||
[workspace]
|
||||
members = ["libs/hbb_common"]
|
||||
exclude = ["ui"]
|
||||
|
||||
#https://github.com/johnthagen/min-sized-rust
|
||||
#https://doc.rust-lang.org/cargo/reference/profiles.html#default-profiles
|
||||
[profile.release]
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
panic = 'abort'
|
||||
strip = true
|
||||
#opt-level = 'z' # only have smaller size after strip # Default is 3, better performance
|
||||
#rpath = true # Not needed
|
||||
|
Loading…
Reference in New Issue
Block a user