diff --git a/CHANGELOG.md b/CHANGELOG.md index 4330634..9a3b133 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ ## [Unreleased] +- Bump Rust to 1.86.0. ([#168]) +- Remove `--signext-lowering` flag from `wasm-opt`. ([#168]) + +Note that contracts built with this version _require CosmWasm 3.0+_ on the chain and cannot be +uploaded to chains running lower versions. + +[#168]: https://github.com/CosmWasm/optimizer/pull/168 + ## [0.16.1] - 2024-10-11 - Bump Rust to current stable 1.81.0 diff --git a/Dockerfile b/Dockerfile index 73f81be..b78751a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.81.0-alpine AS targetarch +FROM rust:1.86.0-alpine AS targetarch ARG BUILDPLATFORM ARG TARGETPLATFORM @@ -74,7 +74,7 @@ RUN cd bob_the_builder && \ # # rust-optimizer target # -FROM rust:1.81.0-alpine AS rust-optimizer +FROM rust:1.86.0-alpine AS rust-optimizer # Download the crates.io index using the new sparse protocol to improve performance ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse diff --git a/optimize.sh b/optimize.sh index fc3b49d..ac7497f 100755 --- a/optimize.sh +++ b/optimize.sh @@ -46,8 +46,7 @@ for WASM in /target/wasm32-unknown-unknown/release/*.wasm; do OUT_FILENAME=$(basename "$WASM") echo "Optimizing $OUT_FILENAME ..." - # --signext-lowering is needed to support blockchains runnning CosmWasm < 1.3. It can be removed eventually - wasm-opt -Os --signext-lowering "$WASM" -o "artifacts/$OUT_FILENAME" + wasm-opt -Os "$WASM" -o "artifacts/$OUT_FILENAME" done echo "Post-processing artifacts..."