Skip to content

Commit 5de70c8

Browse files
committed
v1.80.0
1 parent 05082dc commit 5de70c8

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# NOTE: Most of Dockerfile and related were borrowed from https://hub.docker.com/r/ekidd/rust-musl-builder
22

3-
FROM debian:12.5-slim
3+
FROM debian:12.6-slim
44

55
ARG VERSION=0.0.0
66
ENV VERSION=${VERSION}
@@ -220,14 +220,14 @@ RUN set -eux \
220220
&& true
221221

222222
# Rust stable toolchain
223-
ARG TOOLCHAIN=stable
223+
ARG TOOLCHAIN=1.80.0
224224

225225
# Install our Rust toolchain and the `musl` target. We patch the
226226
# command-line we pass to the installer so that it won't attempt to
227227
# interact with the user or fool around with TTYs. We also set the default
228228
# `--target` to musl so that our users don't need to keep overriding it manually.
229229
RUN set -eux \
230-
&& curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TOOLCHAIN \
230+
&& curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=$TOOLCHAIN \
231231
&& rustup target add \
232232
aarch64-apple-darwin \
233233
aarch64-unknown-linux-gnu \

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Below are the default toolchains included in the Docker image.
4242
docker run --rm \
4343
--volume "${PWD}/sample":/root/src \
4444
--workdir /root/src \
45-
joseluisq/rust-linux-darwin-builder:1.79.0 \
45+
joseluisq/rust-linux-darwin-builder:1.80.0 \
4646
sh -c "cargo build --release --target x86_64-unknown-linux-musl"
4747
```
4848

@@ -52,7 +52,7 @@ docker run --rm \
5252
docker run --rm \
5353
--volume "${PWD}/sample":/root/src \
5454
--workdir /root/src \
55-
joseluisq/rust-linux-darwin-builder:1.79.0 \
55+
joseluisq/rust-linux-darwin-builder:1.80.0 \
5656
sh -c "cargo build --release --target x86_64-unknown-linux-gnu"
5757
```
5858

@@ -62,7 +62,7 @@ docker run --rm \
6262
docker run --rm \
6363
--volume "${PWD}/sample":/root/src \
6464
--workdir /root/src \
65-
joseluisq/rust-linux-darwin-builder:1.79.0 \
65+
joseluisq/rust-linux-darwin-builder:1.80.0 \
6666
sh -c "cargo build --release --target x86_64-apple-darwin"
6767
```
6868

@@ -74,7 +74,7 @@ docker run --rm \
7474
docker run --rm \
7575
--volume "${PWD}/sample":/root/src \
7676
--workdir /root/src \
77-
joseluisq/rust-linux-darwin-builder:1.79.0 \
77+
joseluisq/rust-linux-darwin-builder:1.80.0 \
7878
sh -c "cargo build --release --target aarch64-unknown-linux-gnu"
7979
```
8080

@@ -84,7 +84,7 @@ docker run --rm \
8484
docker run --rm \
8585
--volume "${PWD}/sample":/root/src \
8686
--workdir /root/src \
87-
joseluisq/rust-linux-darwin-builder:1.79.0 \
87+
joseluisq/rust-linux-darwin-builder:1.80.0 \
8888
sh -c "cargo build --release --target aarch64-unknown-linux-musl"
8989
```
9090

@@ -94,7 +94,7 @@ docker run --rm \
9494
docker run --rm \
9595
--volume "${PWD}/sample":/root/src \
9696
--workdir /root/src \
97-
joseluisq/rust-linux-darwin-builder:1.79.0 \
97+
joseluisq/rust-linux-darwin-builder:1.80.0 \
9898
sh -c "cargo build --release --target aarch64-apple-darwin"
9999
```
100100

@@ -107,7 +107,7 @@ It's known that the [`CARGO_HOME`](https://doc.rust-lang.org/cargo/guide/cargo-h
107107
You can also use the image as a base for your Dockerfile:
108108

109109
```Dockerfile
110-
FROM joseluisq/rust-linux-darwin-builder:1.79.0
110+
FROM joseluisq/rust-linux-darwin-builder:1.80.0
111111
```
112112

113113
### OSXCross
@@ -148,9 +148,9 @@ Create a Makefile:
148148
```sh
149149
compile:
150150
@docker run --rm -it \
151-
-v $(PWD):/drone/src \
152-
-w /drone/src \
153-
joseluisq/rust-linux-darwin-builder:1.79.0 \
151+
-v $(PWD):/app/src \
152+
-w /app/src \
153+
joseluisq/rust-linux-darwin-builder:1.80.0 \
154154
make cross-compile
155155
.PHONY: compile
156156

@@ -174,12 +174,12 @@ Just run the makefile `compile` target, then you will see two release binaries `
174174
```sh
175175
make compile
176176
# 1. Cross compiling example...
177-
# rustc 1.79.0 (129f3b996 2024-06-10)
177+
# rustc 1.80.0 (051478957 2024-07-21)
178178
# binary: rustc
179-
# commit-hash: 129f3b9964af4d4a709d1383930ade12dfe7c081
180-
# commit-date: 2024-06-10
179+
# commit-hash: 051478957371ee0084a7c0913941d2a8c4757bb9
180+
# commit-date: 2024-07-21
181181
# host: x86_64-unknown-linux-gnu
182-
# release: 1.79.0
182+
# release: 1.80.0
183183
# LLVM version: 18.1.7
184184

185185
# 2. Compiling application (linux-musl x86_64)...

0 commit comments

Comments
 (0)