Skip to content

Commit

Permalink
Merge pull request #552 from CosmWasm/sw/rust-1.80
Browse files Browse the repository at this point in the history
Bump to Rust 1.80 and other build system cleanups
  • Loading branch information
webmaster128 authored Aug 13, 2024
2 parents 621a87c + e673aa6 commit 1b8be74
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions builders/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 rust:1.77.0-alpine
FROM --platform=linux/amd64 rust:1.80.0-alpine

RUN apk add --no-cache ca-certificates build-base

Expand Down Expand Up @@ -28,6 +28,6 @@ RUN chmod +x /opt/*.sh

RUN mkdir /.cargo
RUN chmod +rx /.cargo
COPY guest/cargo-config /.cargo/config
COPY guest/cargo-config.toml /.cargo/config.toml

CMD ["/opt/build_muslc.sh"]
4 changes: 2 additions & 2 deletions builders/Dockerfile.cross
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 rust:1.77.0-bullseye
FROM --platform=linux/amd64 rust:1.80.0-bookworm

# Install build dependencies
RUN apt-get update \
Expand Down Expand Up @@ -49,6 +49,6 @@ RUN chmod +x /usr/local/bin/*.sh

RUN mkdir /.cargo
RUN chmod +rx /.cargo
COPY guest/cargo-config /.cargo/config
COPY guest/cargo-config.toml /.cargo/config.toml

CMD ["bash", "-c", "echo 'Argument missing. Pass one build script (e.g. build_macos.sh) to docker run' && exit 1"]
4 changes: 2 additions & 2 deletions builders/Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \

RUN wget --no-verbose "https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init" \
&& chmod +x rustup-init \
&& ./rustup-init -y --no-modify-path --profile minimal --default-toolchain 1.77.0 \
&& ./rustup-init -y --no-modify-path --profile minimal --default-toolchain 1.80.0 \
&& rm rustup-init \
&& chmod -R a+w $RUSTUP_HOME $CARGO_HOME \
&& rustup --version \
Expand All @@ -31,6 +31,6 @@ RUN chmod +x /usr/local/bin/*.sh

RUN mkdir /.cargo
RUN chmod +rx /.cargo
COPY guest/cargo-config /.cargo/config
COPY guest/cargo-config.toml /.cargo/config.toml

CMD ["bash", "-c", "echo 'Argument missing. Pass one build script (e.g. build_linux.sh) to docker run' && exit 1"]
6 changes: 6 additions & 0 deletions builders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ See those DockerHub repos for all available versions of the builder images.

**Unreleased**

- Update Rust to 1.80.0.
- Update Dockerfile.cross from Debian Bullseye to Bookworm ([#533])
- Rename `.cargo/config` to `.cargo/config.toml` to silence warning

[#533]: https://github.com/CosmWasm/wasmvm/issues/533

**Version 0100:**

- Rename builder image from cosmwasm/go-ext-builder to
Expand Down
File renamed without changes.

0 comments on commit 1b8be74

Please sign in to comment.