PSA: For cross-compiling please use the "Cross" tool.

85 points justacec

It is fairly typical for me to cross-compile from my MacOS development machine to my embedded targets of STM32, RP2040, and the Raspberry Pi platforms. To support this I have in the past struggled to install (although not toooo hard to do) to install all of the necessary tools to cross-compile directly on those targets. Last night, for the first time, I tried the rust native "Cross" tool. Oh My Gosh! I am never going back sans some currently unforeseen limitation on this. The ease of using this tool and it simply working should not be ignored.

Get back to building and innovating instead of fighting the tool chain!

Ok, for some, that may be too much to read, so...

TLDR; Use the rust Cross tool to perform cross-compiling for different targets! ;)