I am learning Rust and writing some basic CLI tools as an exercise. I am storing my application source in Github, using Github actions to generate binaries and publish those binaries via Github releases.
The issue is; I am unsure how to cross compile my Rust application for various target architectures and operating systems.
(Apologise for the comparison) Previously when using Go, I could specify the target CPU architecture and target Operating System in the build command like:
env GOARCH=arm64 GOOS=darwin go build
When looking to see if there is an equivalent in Rust I am seeing instructions telling me to use virtualization and various other techniques to cross compile.
I suspect I might just be bad at researching, is there an equivalent simple way to cross compile Rust applications?
If not, why is that and could you point me to resources to help me learn how to do it?