4 ms·
It's still work in progress as it only supports linux right now, but while Rust's cross compilation story is far better than C, it's still far behind Zig. This
by 3836293648 5y ago
It's still work in progress as it only supports linux right now, but while Rust's cross compilation story is far better than C, it's still far behind Zig. This calls in Zig as a dependency for building rust code which fixes that and makes Rust's cross compilation just work
- rcxdude 5y agoSpecifically cross compilation works just fine with pure rust code, but rust doesn't include a linker so you need to provide an appropriate one for your host/target combination (which can be a pain). Zig happens to have a linker which supports a large variety of targets, so this project makes it easy to use that during your build.