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
+4
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,10 @@ docker run --rm \
40
40
sh -c "cargo build --release --target x86_64-apple-darwin"
41
41
```
42
42
43
+
### Cargo Home advice
44
+
45
+
It's known that the [g](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 you want to cross-compile to an `x86_64-apple-darwin` target.
46
+
43
47
### Dockerfile
44
48
45
49
You can also use the image as a base for your own Dockerfile:
0 commit comments