Skip to content

Commit 06cad79

Browse files
Set cargo profile options for release
* Enable link time optimization * Optimize for size * Set one thread to generate code and better optimize it Signed-off-by: Florentin Dubois <florentin.dubois@clever-cloud.com>
1 parent ae9e039 commit 06cad79

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,8 @@ trace = [
8383
"opentelemetry",
8484
"opentelemetry-jaeger",
8585
]
86+
87+
[profile.release]
88+
lto = true
89+
opt-level = 'z'
90+
codegen-units = 1

0 commit comments

Comments
 (0)