You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ By default the working directory is `/root/src`.
38
38
docker run --rm \
39
39
--volume "${PWD}/sample":/root/src \
40
40
--workdir /root/src \
41
-
joseluisq/rust-linux-darwin-builder:1.59.0 \
41
+
joseluisq/rust-linux-darwin-builder:1.60.0 \
42
42
sh -c "cargo build --release"
43
43
```
44
44
@@ -50,20 +50,20 @@ docker run --rm \
50
50
docker run --rm \
51
51
--volume "${PWD}/sample":/root/src \
52
52
--workdir /root/src \
53
-
joseluisq/rust-linux-darwin-builder:1.59.0 \
53
+
joseluisq/rust-linux-darwin-builder:1.60.0 \
54
54
sh -c "cargo build --release --target x86_64-apple-darwin"
55
55
```
56
56
57
57
### Cargo Home advice
58
58
59
-
It's known that the [`CARGO_HOME`](https://doc.rust-lang.org/cargo/guide/cargo-home.html#cargo-home) points to `$HOME/.cargo` by default (`/root/.cargo` in this case). However if you want to use a custom Cargo home directory make sure to copy the Cargo `config` file to the particular directory like `cp "$HOME/.cargo/config" "$CARGO_HOME/"` before to cross-compile your program. Otherwise you could face a linkage error when for example if you want to cross-compile to an `x86_64-apple-darwin` target.
59
+
It's known that the [`CARGO_HOME`](https://doc.rust-lang.org/cargo/guide/cargo-home.html#cargo-home) points to `$HOME/.cargo` by default (`/root/.cargo` in this case). However if you want to use a custom Cargo home directory then make sure to copy the Cargo `config` file to the particular directory like `cp "$HOME/.cargo/config" "$CARGO_HOME/"` before to cross-compile your program. Otherwise you could face a linking error when for example you want to cross-compile to an `x86_64-apple-darwin` target.
60
60
61
61
### Dockerfile
62
62
63
63
You can also use the image as a base for your own Dockerfile:
64
64
65
65
```Dockerfile
66
-
FROM joseluisq/rust-linux-darwin-builder:1.59.0
66
+
FROM joseluisq/rust-linux-darwin-builder:1.60.0
67
67
```
68
68
69
69
### OSXCross
@@ -106,7 +106,7 @@ compile:
106
106
@docker run --rm -it \
107
107
-v $(PWD):/drone/src \
108
108
-w /drone/src \
109
-
joseluisq/rust-linux-darwin-builder:1.59.0 \
109
+
joseluisq/rust-linux-darwin-builder:1.60.0 \
110
110
make cross-compile
111
111
.PHONY: compile
112
112
@@ -131,13 +131,13 @@ Just run the makefile `compile` target, then you will see two release binaries `
0 commit comments