3 ms·
I have one sore spot about Rust: The Rust build tools are almost unusably slow on small ARM devices like the Raspberry Pi Zero. I can compile a simple C++ progr
by ThJ 8y ago
I have one sore spot about Rust: The Rust build tools are almost unusably slow on small ARM devices like the Raspberry Pi Zero. I can compile a simple C++ program just fine on such a device, but Rust will take ages building dependencies and requires a swap file because it eats up all the physical memory. Meanwhile, in C++ land, my distribution's package manager includes prebuilt C++ libraries and headers. I tried cross compilation but that was a nightmare to set up, and got even worse when Cargo packages depended on C libraries, which then also had to be cross compiled. In the end, I was unable to get it working, and had to give up my attempt at targeting that platform with Rust.
- iknowstuff 8y agoCross-compilation should be much easier when rust starts using the lld linker. You can try it out now by building a statically-linked musl binary in nightly. rustup target add arm-unknown-linux-musleabihf RUSTFLAGS='-C linker=rust-lld -Z linker-flavor=ld.lld' cargo +nightly build --target arm-unknown-linux-musleabihf