Cross compiling is provided by cargo-zigbuild Zig must be version 0.13.0 due to bugs in newer versions. rust-cross/cargo-zigbuild#309 rust-cross/cargo-zigbuild#324 ziglang/zig#23179 rust-lang/rust#112501 To compile for macos, the mac sdk is required. this can be provided natively on mac by installing xcode, or on other platforms by downloading an sdk and setting the SDKROOT env var. https://github.com/joseluisq/macosx-sdks
Known Issues:
- can't build windows-gnu target on windows with zigbuild
- can't build windows-msvc target with zigbuild