Skip to content

Commit

Permalink
Reduce release binary size
Browse files Browse the repository at this point in the history
Applied safe changes of min-sized rust to release profile
https://github.com/johnthagen/min-sized-rust
  • Loading branch information
reportingissue authored and p1gp1g committed Nov 12, 2023
1 parent 84535df commit 566d1a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ repository = "https://github.com/mollyim/mollysocket"
keywords = ["unifiedpush", "molly", "signal"]
# build = "src/build_proto.rs"

[profile.release]
strip = true # Automatically strip symbols from the binary.
opt-level = "s" # Optimize for size
lto = true # Link time optimization
codegen-units = 1 # Limit code generation units

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Expand Down

0 comments on commit 566d1a4

Please sign in to comment.