January 2019
Intermediate to advanced
316 pages
8h 8m
English
Generally, Rust dependencies have two types of linking:
The preference—if a corresponding rlib can be found—is to link statically and therefore include all dependencies into the output binary, making the file a lot larger (to the dismay of embedded programmers). Therefore, if multiple Rust programs use the same dependency, each comes with its own built-in version. It's all about the context though, since, as Go's success has shown, static linking can simplify complex deployments since only a single file has to be rolled out.
There are drawbacks to the static linking approach beyond size: for static libraries, all dependencies have to be ...