emk / rust-musl-builder

Docker images for compiling static Rust binaries using musl-libc and musl-gcc, with static versions of useful C libraries. Supports openssl and diesel crates.
Apache License 2.0
1.54k stars 193 forks source link

Update to Rust stable 1.53.0 #123

Closed JMLX42 closed 2 years ago

JMLX42 commented 3 years ago

Rust release: 1.53.0

https://blog.rust-lang.org/2021/06/17/Rust-1.53.0.html

georglauterbach commented 3 years ago

@emk any chance this could happen in the near future?

JMLX42 commented 3 years ago

The following command line can be used to build the 1.53 image:

$ docker build \
    --build-arg TOOLCHAIN="1.53.0" \
    --build-arg OPENSSL_VERSION="1.1.1i" \
    -t "rust-musl:1.53.0" \
    .
vbrandl commented 3 years ago

I just created https://github.com/emk/rust-musl-builder/pull/126 to switch from the Docker Hub CI to GitHub Actions, since the shutdown of the Docker Hub free tier is the reason, why there are no new versions of the image.

Maybe anyone already built and published Docker images using GitHub Actions can have a look if this is OK or could be improved.

gibfahn commented 3 years ago

Just a note that I found specifying a TOOLCHAIN version (as opposed to the default, which is stable) breaks things when your rust-toolchain just says stable, as rustup will start trying to download x86_64-unknown-linux-gnu and fail as it's not running as root etc.

Rebuild for latest openssl 1.1.1 (and which works to build Rust 1.55.0 as of today):

docker build --build-arg OPENSSL_VERSION=1.1.1l -t rust-musl-builder .
ja573 commented 2 years ago

Latest stable: 1.56.0

dessalines commented 2 years ago

This one worked for me: https://github.com/clux/muslrust

emk commented 2 years ago

This is blocked on: https://github.com/emk/rust-musl-builder/pull/126. Please see the discussion there.

emk commented 2 years ago

We now have up-to-date nightly builds using GitHub CI! Thank you to everyone for the encouragement.