A simple rust toolkit/template to automate all your cross-compilation tools and related dependencies asap. This toolkit uses the official rust cross crate for the cross-compilation. Simply adjust your environment variables and get started.
- Goto your project folder and load the toolkit:
wget -qO- https://github.com/iocron/rust-cross-build/archive/refs/tags/latest.tar.gz | tar --strip-components=1 -xzf -
chmod u+x cross-*.sh
- Init project and install dependencies:
./cross-init.sh
- Edit your targets in the .env file
Cross run/test your application
./cross-run.sh
Cross build your application
./cross-build.sh
Init project and install dependencies
./cross-init.sh
Read more about the official cross crate: https://github.com/cross-rs/cross