4 ms·
Small detail: most Rust programs do need glibc installed. Unless you've built with MUSL specifically.
by steveklabnik 11y ago
Small detail: most Rust programs do need glibc installed. Unless you've built with MUSL specifically.
- kibwen 11y agoTo elaborate, by default Rust programs are entirely statically linked (dynamic linking is available with a compiler flag), though with a single dynamic dependency on libc. This means you can compile ordinary Rust code into a single executable and run that executable on any machine with a compatible version of libc (which is fairly universally available, so not a problem in practice). If you want no dynamic dependencies whatsoever, then Rust supports linking to musl, which is an implementation of libc that's designed for static linking.