Skip to content

Commit

Permalink
Borrow Cargo.toml's profile.release from RustDesk for better binary (
Browse files Browse the repository at this point in the history
  • Loading branch information
xlionjuan authored Oct 14, 2024
1 parent 2ac3169 commit 4c74586
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4c74586

Please sign in to comment.