In order to build this project in OSX you must ensure that you have a folder called .cargo
with a config
file in it. This file must contain exactly this:
[target.x86_64-unknown-linux-musl]
linker = "x86_64-linux-musl-gcc"
Install the musl-tools
:
sudo apt install musl-tools
Remove the .cargo
folder if present or comment the contents of the config
file.
# this will start the build process
cargo build --release --target x86_64-unknown-linux-musl
# this will create the final zip
zip -j rust.zip ./target/x86_64-unknown-linux-musl/release/bootstrap
Several AWS resources are needed to follow along in the content. This guide will help you set up the resources needed and will show you how to remove everything as well.