Based on this tutorial.
The normal linker is fairly slow for the massive amount of sub-crates that Bevy requires! So, we swap it out for the LLD linker. To do this:
- Ubuntu:
sudo apt install lld
- Arch:
sudo pacman -S lld
- Windows:
cargo install -f cargo-binutils
andrustup component add llvm-tools-preview
- MacOS:
brew install michaeleisel/zld/zld
You'll also need a nightly build of Rust. So, using Rustup:
$ rustup toolchain install nightly
info: syncing channel updates for 'nightly-arch-platform-compiler'
# More output follows...
The song included in this repository is Electronic Fantasy by Patrick de Arteaga, licensed under the Creative Commons Attribution 4.0 license. See his website for this and loads more royalty-free arcade music!