Skip to content

Commit

Permalink
optimize binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas-Heiligenbrunner committed Aug 30, 2024
1 parent dc6de1f commit 04578bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,9 @@ path = "src/main.rs"
[features]
default = []
static = []

[profile.release]
strip = true # Automatically strip symbols from the binary.
opt-level = "z" # Optimize for size.
lto = true # Enable link-time optimization.
codegen-units = 1

0 comments on commit 04578bd

Please sign in to comment.