Re:Rewriting Sysctl(8) in Rust: Systeroid
by kibwen on Tuesday April 19, 2022 @11:44AM
(#31084691)
Unlike Node, here you can just copy the binary over. Rust binaries are statically-linked by default (though C dependencies can complicate that).
[ Parent
| on HN ]
Re:Rewriting Sysctl(8) in Rust: Systeroid
by monocasa on Tuesday April 19, 2022 @12:43PM
(#31085543)
Rust binaries aren't statically linked by default, but all of the rust code in the binary is.
Rust 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.