In Go you run this to build:
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' .
In Go you run this to build:
I do not actually know how you get this done in Rust (you do something with musl and a bunch of other stuff).