Read from dependencies, I'm planning to use "features" and "optional dependencies" to export different components of a project. I'd like to know when I turn on parts of features, whether the library size narrowed as much as possible.
Disabled optional dependencies are not included in the binary.
Enabled optional dependencies may or may not. If you use lto setting, then unused code will be mostly removed, so unused dependencies may end up being removed.