Skip to content

Commit 624ee38

Browse files
author
Max Dymond
authored
Merge pull request #310 from Metaswitch/md/optimiserelease
Optimise the release build for size
2 parents e570306 + cf98d92 commit 624ee38

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Status: Available for use
1919
- #62: Use shell_words to split the outer shell so that more complex outer shells can be used.
2020
- Load values from files relative to the floki config file, not from the
2121
current working directory.
22+
- Optimise the release build for size
2223

2324
## [1.2.0] - 2023-07-07
2425

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,9 @@ shell-words = "1.1.0"
3535

3636
[dev-dependencies]
3737
tempfile = "3.6.0"
38+
39+
[profile.release]
40+
strip = true # Automatically strip symbols from the binary.
41+
opt-level = "z" # Optimize for size.
42+
lto = true
43+
codegen-units = 1

0 commit comments

Comments
 (0)