Skip to content

Commit cf98d92

Browse files
author
Max Dymond
committed
Optimise the release build for size
Signed-off-by: Max Dymond <max.dymond@microsoft.com>
1 parent e570306 commit cf98d92

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)