Re:Fang, the CLI Starter Kit
by threemux on Wednesday June 18, 2025 @09:07PM
(#44314576)
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.
[ Parent
| on HN ]
Re:Fang, the CLI Starter Kit
by paulddraper on Wednesday June 18, 2025 @09:31PM
(#44314669)
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.