3 ms·
Yeah, it's all good. Rustup will also distribute the source: ~> rustup component list | rg src rust-src (installed) But this is so that that workflow work
by steveklabnik 3y ago
Yeah, it's all good. Rustup will also distribute the source:
~> rustup component list | rg src
rust-src (installed)
But this is so that that workflow works well, not because the compiler actually uses it during the build.
> the compiler is smart enough to not be over-compiling unused symbols.
This is true even without the source, mind you, but the devil is just in the details. Stuff like the panic and/or formatting machinery is known to creep in even if you don't think you're using it, because some edge case might. This only truly matters for embedded and similar, but it's still a thing.