2 ms·
> Today rustup provides access to the standard library, but as we’ve seen in this post, there’s more to cross-compilation than rustc + std. It’s acquiring and c
by shakna 10y ago
> Today rustup provides access to the standard library, but as we’ve seen in this post, there’s more to cross-compilation than rustc + std. It’s acquiring and configuring the linker and C toolchain that is the most vexing
Unfortunately I'd have to agree with this, C is just easier.
> We have knocked debug symbols down, now let’s get rid of the remaining libraries. Some bad news: From this point on you are entering the realm of nightly Rust. This realm is not as scary as you might think, as it doesn't break in your face, but it may break in smaller ways (which is why we have nightlies!). That’s the major reason that we don’t yet have nightly features in stable– they may change.
Relying on a nightly for production code is simply not something I would ever get approved.
I sort of hope that as Rust solves these issues, tools like rustup and Cargo will get to the state of Red and its cross-compilation state. (Compile for Linux-86, Linux-ARM, Windows, macOS, Android with one flag from the one compiler. Which is less than 1mb, statically linked.)