Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
One of the biggest selling points for me when I started to use Go is cross compilation; I develop on a Mac, but run a lot of my code on a Linux EC2 instance (or been doing dev work on a Windows+WSL machine) and Go's cross compilation options (either via the built in tool or via something like gox are braindead easy. Rust's cross compilation however makes me want to drive my head thru my monitor... there are no easy ways to build a binary for Linux, Windows, AND Mac without having to dip my toes into CI services and with that comes an expense that for a hobby dev I'd prefer to not incur. Is there a brighter future for easy cross compilation with Rust?
Have you seen cross? I don't normally do multi-platform builds, but I've used it for compiling for different arches. For me if there's nothing major dynamically linked then it "just works(TM)". If you do need to link to something like SQLite then you can setup your own base image that provides it (the "Custom Docker image" section)
I have tried, however I haven't been able to get it to work reliably (e.g. building on windows + linux on WSL works, Mac is a lot more involved; tried building for windows + linux on Mac and I couldn't get it to work at all); I've had some luck using zigbuild but that too doesn't seem to work for Mac.