From 9f9c83b2cdfdaaccb8f934dc8d96843135372ef9 Mon Sep 17 00:00:00 2001 From: dakom <6406986+dakom@users.noreply.github.com> Date: Wed, 22 Oct 2025 07:58:12 +0300 Subject: [PATCH 1/2] bump rust to 1.90.0 bump version to 0.17.1 --- CHANGELOG.md | 9 ++++++++- Dockerfile | 4 ++-- Makefile | 2 +- README.md | 6 +++--- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f81b686..348971c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## [Unreleased] +## [0.17.1] - 2025-10-22 + +- Bump Rust to 1.90.0. ([#168]) + +[#168]: https://github.com/CosmWasm/optimizer/pull/168 + ## [0.17.0] - 2025-06-26 - Bump Rust to 1.86.0. ([#168]) @@ -293,7 +299,8 @@ sources and should not be used. 0.7.0, 0.7.1 and 0.7.3 unaffected. - Bump emscripten to 1.39.8-fastcomp - Bump Rust to 1.41.0 -[unreleased]: https://github.com/CosmWasm/rust-optimizer/compare/v0.17.0...HEAD +[unreleased]: https://github.com/CosmWasm/rust-optimizer/compare/v0.17.1...HEAD +[0.17.1]: https://github.com/CosmWasm/rust-optimizer/compare/v0.17.0...v0.17.1 [0.17.0]: https://github.com/CosmWasm/rust-optimizer/compare/v0.16.1...v0.17.0 [0.16.1]: https://github.com/CosmWasm/rust-optimizer/compare/v0.16.0...v0.16.1 [0.16.0]: https://github.com/CosmWasm/rust-optimizer/compare/v0.15.1...v0.16.0 diff --git a/Dockerfile b/Dockerfile index b78751a..375c2b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rust:1.86.0-alpine AS targetarch +FROM rust:1.90.0-alpine AS targetarch ARG BUILDPLATFORM ARG TARGETPLATFORM @@ -74,7 +74,7 @@ RUN cd bob_the_builder && \ # # rust-optimizer target # -FROM rust:1.86.0-alpine AS rust-optimizer +FROM rust:1.90.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/Makefile b/Makefile index 2356003..85be0e3 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ DN_OPTIMIZER := "cosmwasm/optimizer" DN_RUST_OPTIMIZER := "cosmwasm/rust-optimizer" DN_WORKSPACE_OPTIMIZER := "cosmwasm/workspace-optimizer" -DOCKER_TAG := 0.17.0 +DOCKER_TAG := 0.17.1 # Native arch BUILDARCH := $(shell uname -m) diff --git a/README.md b/README.md index ac614d9..a649de0 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ you to produce a smaller build that works with the cosmwasm integration tests docker run --rm -v "$(pwd)":/code \ --mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ - cosmwasm/optimizer:0.17.0 + cosmwasm/optimizer:0.17.1 ``` Demo this with `cosmwasm-examples` (going into eg. `erc20` subdir before running), @@ -63,7 +63,7 @@ To compile all contracts in the workspace deterministically, you can run: docker run --rm -v "$(pwd)":/code \ --mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ - cosmwasm/optimizer:0.17.0 + cosmwasm/optimizer:0.17.1 ``` The downside is that to verify one contract in the workspace, you need to compile them @@ -89,7 +89,7 @@ case, we can use the optimize.sh command: docker run --rm -v "$(pwd)":/code \ --mount type=volume,source="devcontract_cache_burner",target=/code/contracts/burner/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ - cosmwasm/optimizer:0.17.0 ./contracts/burner + cosmwasm/optimizer:0.17.1 ./contracts/burner ``` ## Caches From e79c85a0a1b5d93d5cf1946362a15b10213aa698 Mon Sep 17 00:00:00 2001 From: dakom <6406986+dakom@users.noreply.github.com> Date: Wed, 22 Oct 2025 08:57:25 +0300 Subject: [PATCH 2/2] bump binaryen --- CHANGELOG.md | 1 + Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 348971c..a26b715 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ## [0.17.1] - 2025-10-22 - Bump Rust to 1.90.0. ([#168]) +- Bump binaryen to 124. ([#168]) [#168]: https://github.com/CosmWasm/optimizer/pull/168 diff --git a/Dockerfile b/Dockerfile index 375c2b6..8ab616c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ARG BUILDPLATFORM ARG TARGETPLATFORM ARG TARGETARCH -ARG BINARYEN_VERSION="version_116" +ARG BINARYEN_VERSION="version_124" RUN echo "Running on $BUILDPLATFORM, building for $TARGETPLATFORM"