learnings

Static linking with +crt-static

Sometimes it is necessary to create statically linked binary. The command below can help:

RUSTFLAGS='-C target-feature=+crt-static' cargo build

Links

More about static linking and this command/flag: