Skip to content

Commit 437689b

Browse files
authored
Merge pull request #32 from CosmWasm/update-to-rust-1.50.0
Update to rust 1.50.0
2 parents c87b048 + e319e0a commit 437689b

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## 0.10.8
4+
5+
- `cosmwasm/rust-optimizer`: bump Rust to 1.50.0
6+
- `cosmwasm/workspace-optimizer`: bump Rust to nightly-2021-03-01
7+
38
## 0.10.7
49

510
- Add shared build cache (sccache) to rust-optimizer

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
DOCKER_NAME_RUST_OPTIMIZER := "cosmwasm/rust-optimizer"
44
DOCKER_NAME_WORKSPACE_OPTIMIZER := "cosmwasm/workspace-optimizer"
5-
DOCKER_TAG := 0.10.7
5+
DOCKER_TAG := 0.10.8
66

77
build-rust-optimizer:
88
docker build -t $(DOCKER_NAME_RUST_OPTIMIZER):$(DOCKER_TAG) --file rust-optimizer.Dockerfile .

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ you to produce a smaller build that works with the cosmwasm integration tests
2424
docker run --rm -v "$(pwd)":/code \
2525
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
2626
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
27-
cosmwasm/rust-optimizer:0.10.7
27+
cosmwasm/rust-optimizer:0.10.8
2828
```
2929

3030
Demo this with `cosmwasm-examples` (going into eg. `erc20` subdir before running),
@@ -57,7 +57,7 @@ To compile all contracts in the workspace deterministically, you can run:
5757
docker run --rm -v "$(pwd)":/code \
5858
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
5959
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
60-
cosmwasm/workspace-optimizer:0.10.7
60+
cosmwasm/workspace-optimizer:0.10.8
6161
```
6262

6363
The downside is that to verify one contract in the workspace, you need to compile them
@@ -83,7 +83,7 @@ case, we can use the optimize.sh command:
8383
docker run --rm -v "$(pwd)":/code \
8484
--mount type=volume,source="devcontract_cache_burner",target=/code/contracts/burner/target \
8585
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
86-
cosmwasm/rust-optimizer:0.10.7 ./contracts/burner
86+
cosmwasm/rust-optimizer:0.10.8 ./contracts/burner
8787
```
8888

8989
## Development

rust-optimizer.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Note: I tried slim and had issues compiling wasm-pack, even with --features vendored-openssl
2-
FROM rust:1.47.0
2+
FROM rust:1.50.0
33

44
# setup rust with Wasm support
55
RUN rustup target add wasm32-unknown-unknown
66

77
# Install sccache from https://crates.io/crates/sccache
88
# This is slow due to full release compilation from source.
99
# Use full version string here to ensure Docker caching works well.
10-
RUN cargo install --version 0.2.13 sccache
10+
RUN cargo install --version 0.2.15 sccache
1111

1212
# Download binaryen and verify checksum
1313
ADD https://github.com/WebAssembly/binaryen/releases/download/version_96/binaryen-version_96-x86_64-linux.tar.gz /tmp/binaryen.tar.gz

workspace-optimizer.Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This version of Rust will not be used for compilation but just serves as a stable base image to get debian+rustup.
22
# See Rust nightly config below.
3-
FROM rust:1.47.0
4-
RUN rustup toolchain remove 1.47.0
3+
FROM rust:1.50.0
4+
RUN rustup toolchain remove 1.50.0
55

66
RUN apt update
77
RUN apt install python3 python3-toml -y
@@ -10,8 +10,8 @@ RUN python3 --version
1010

1111
# Install Rust nightly
1212
# Choose version from: https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu.html
13-
RUN rustup toolchain install nightly-2020-10-14 --allow-downgrade --profile minimal --target wasm32-unknown-unknown
14-
RUN rustup default nightly-2020-10-14
13+
RUN rustup toolchain install nightly-2021-03-01 --allow-downgrade --profile minimal --target wasm32-unknown-unknown
14+
RUN rustup default nightly-2021-03-01
1515
RUN rustup toolchain list
1616
# Check cargo version
1717
RUN cargo --version

0 commit comments

Comments
 (0)