When rust compiles your code for production, does it follow a similar concept as tree shaking in webapp bundling to discard unused blocks of code? or the whole unused code gets compiled too?
I am following through rust docs but have not found if this is the behavior the compiler follows too.