4 ms·
Unlike Node, here you can just copy the binary over. Rust binaries are statically-linked by default (though C dependencies can complicate that).
by kibwen 5y ago
Unlike Node, here you can just copy the binary over. Rust binaries are statically-linked by default (though C dependencies can complicate that).
- monocasa 5y agoRust binaries aren't statically linked by default, but all of the rust code in the binary is.
- dijit 5y agoRust isn’t statically compiled, you can make it so, but it isn’t by default, it depends on the libc you link against, on Linux it is glibc. Regardless: you’re right in some regards. Cargo vendor exits, so you can ship your code dependencies alongside your own code.