Reworded README for multi target
This commit is contained in:
parent
a770dbe45e
commit
70ba887f66
|
@ -9,12 +9,14 @@ alias rust-musl-builder='docker run --rm -it -v "$(pwd)":/home/rust/src ekidd/ru
|
|||
rust-musl-builder cargo build --release
|
||||
```
|
||||
|
||||
This command assumes that `$(pwd)` is readable and writable by uid 1000, gid 1000. At the moment, it doesn't attempt to cache libraries between builds, so this is best reserved for making final release builds.
|
||||
|
||||
To target ARM hard float (Raspberry Pi):
|
||||
```sh
|
||||
rust-musl-builder cargo build --target=armv7-unknown-linux-musleabihf --release
|
||||
rust-musl-builder cargo build --target=armv7-unknown-linux-musleabihf --release
|
||||
```
|
||||
|
||||
This command assumes that `$(pwd)` is readable and writable by uid 1000, gid 1000. It will output binaries in `target/x86_64-unknown-linux-musl/release`. At the moment, it doesn't attempt to cache libraries between builds, so this is best reserved for making final release builds.
|
||||
Binaries will be written to `target/$TARGET_ARCHITECTURE/release`. By default it targets `x86_64-unknown-linux-musl` unless specified with `--target`.
|
||||
|
||||
## Deploying your Rust application
|
||||
|
||||
|
|
Loading…
Reference in a new issue