Skip to content

Commit 0eb49c2

Browse files
committed
cargo: Stip debuginfo and apply LTO for release profile
This decreases the binary size from ~5 MB to ~ 800 KB, which is a nice improvement. Perhaps in the future we can also publish a debug build for released versions where these optimizations are not stripped out, allowing for better troubleshooting.
1 parent 5098d61 commit 0eb49c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name = "magento2-worker-daemon"
33
version = "0.2.0"
44
edition = "2021"
55

6+
[profile.release]
7+
strip = true
8+
lto = true
9+
610
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
711

812
[dependencies]

0 commit comments

Comments
 (0)