ratatui-org / ratatui

Rust library that's all about cooking up terminal user interfaces (TUIs) 👨‍🍳🐀
https://ratatui.rs
MIT License
8.86k stars 269 forks source link

Move away from using Prelude / glob imports #1150

Open joshka opened 1 month ago

joshka commented 1 month ago

Problem

Based on much feedback from @EdJoPaTo across multiple PRs, as well as seeking external feedback on users.rust-lang.org, reddit, our forum and discord servers, it's time to fix up how we use the prelude.

The overwhelming response gave me the impression at least in code that is used for teaching / communicating that the prelude causes more harm than good. This was counter to my prior understanding of this.

Solution

Alternatives

Additional context