Comment on Fang, the CLI Starter KitparentComments−threemux1yWow TIL cross compilation is a bit of a pain in Rust. I assumed it was as easy as Go. I can confirm as long as you're using pure Go (no cgo), it's as easy as setting $GOOS and $GOARCH appropriately.−paulddraper1yThe difficulty is due to Rust dynamically linking and Go statically linking. The former requires the system libs.That said, I am unfamiliar with any licensing for Windows builds.MacOS has some niche (usually discarded) technicalities like you can only use the SDK on Apple hardware.−threemux1yI think that's a reference to the use of Docker in the "cross" tool that makes cross compilation easier but I'm not certain
Comments
Wow TIL cross compilation is a bit of a pain in Rust. I assumed it was as easy as Go. I can confirm as long as you're using pure Go (no cgo), it's as easy as setting $GOOS and $GOARCH appropriately.
The difficulty is due to Rust dynamically linking and Go statically linking. The former requires the system libs.
That said, I am unfamiliar with any licensing for Windows builds.
MacOS has some niche (usually discarded) technicalities like you can only use the SDK on Apple hardware.
I think that's a reference to the use of Docker in the "cross" tool that makes cross compilation easier but I'm not certain