Skip to content

Comment on Fang, the CLI Starter Kitparent

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.