I'm wondering how unused code stripping works for Rust:
I have an
error crate which contains an
enum MyError and which depends on a lot of other crates (
diesel...) to import those crates' errors and
impl From those errors.
If a program rely on my
error crate, when compiling, will Rust strip all the unused code from those crates (
diesel...) because I'm only using their
Errors types, or will my executable contains all the code from all those crates?