Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.81.0-alpine AS targetarch
FROM rust:1.86.0-alpine AS targetarch

ARG BUILDPLATFORM
ARG TARGETPLATFORM
Expand Down Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions optimize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down