diff --git a/Cargo.toml b/Cargo.toml index e720234c4..c3e7ef637 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,11 @@ members =[ "packages/hurlfmt", "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. + diff --git a/bin/release/release.sh b/bin/release/release.sh index ee0af26eb..cf933b643 100755 --- a/bin/release/release.sh +++ b/bin/release/release.sh @@ -4,8 +4,6 @@ set -e PATH="$HOME"/.cargo/bin:$PATH export PATH cargo build --release --verbose --locked -strip target/release/hurl -strip target/release/hurlfmt target/release/hurl --version