Hacker News new | ask | show | jobs
by iknowstuff 457 days ago
Can’t you just replace the “cargo” command with “cross”

    cross build —-target=…
https://github.com/cross-rs/cross
1 comments

Cross-building for Apple is possible, but it's far from smooth with many steps that you have to figure out by yourself unfortunately.
I use this which seems to work well for my projects. Particularly their docker image.

https://github.com/rust-cross/cargo-zigbuild