mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-26 00:22:10 +03:00
Reduces Hurl release binary size.
This commit is contained in:
parent
802d78359f
commit
88ad6a3d19
@ -4,3 +4,11 @@ members =[
|
|||||||
"packages/hurlfmt",
|
"packages/hurlfmt",
|
||||||
"packages/hurl_core",
|
"packages/hurl_core",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
lto = true # Enable Link Time Optimization
|
||||||
|
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
|
||||||
|
panic = "abort" # Abort on panic
|
||||||
|
strip = true # Automatically strip symbols from the binary.
|
||||||
|
|
||||||
|
@ -4,8 +4,6 @@ set -e
|
|||||||
PATH="$HOME"/.cargo/bin:$PATH
|
PATH="$HOME"/.cargo/bin:$PATH
|
||||||
export PATH
|
export PATH
|
||||||
cargo build --release --verbose --locked
|
cargo build --release --verbose --locked
|
||||||
strip target/release/hurl
|
|
||||||
strip target/release/hurlfmt
|
|
||||||
|
|
||||||
target/release/hurl --version
|
target/release/hurl --version
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user