I often need to
use lots of external things, in several different files. This causes two problematic scenarios:
- Copy/pasting blocks of
usestatements and getting hit with a million warnings until I figure out exactly what I need. There's overlap between the files but the dependencies aren't identical everywhere
- Being precise and taking the time to only use what I need, which is annoying
To make life simpler, I'm thinking of just keeping a top-level
pub use everything there and then
use crate::prelude::* everywhere.
Is that a terrible idea? One concern I have is if it will it affect compile time or bloat in debug builds... (I'd imagine release builds strip unused code).