Skip to content

Commit

Permalink
Reduce release binary size (#7)
Browse files Browse the repository at this point in the history
* Shrink binary size

Applied safe changes of min-sized rust to release profile
https://github.com/johnthagen/min-sized-rust
  • Loading branch information
reportingissue authored Nov 12, 2023
1 parent 1179772 commit b54f88a
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 b54f88a

Please sign in to comment.