Skip to content

Update to Rust 1.86 #168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 27, 2025
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