Closed
Description
gtk-rs (and libadwaita-rs) reexport glib, gio, etc, along with things like the adw/gtk::subclass::prelude
module rexporting glib::subclass::prelude
. This leads to weird issues where Rust Analyzer has a hard time deciding which import to use, and ends up suggesting a strange one like adw::subclass::prelude::ObjectImpl
or gio::subclass::prelude::ObjectSubclass
.
In general, I think that we can come up with a better module system than the weird widget/trait/subclass::prelude
splits, and things occasionally being inconsistent like the prelude not having everything in the parent subclass module, or the ExtManual traits being in crate::prelude
instead of crate::traits
, or InitializingObject not being in glib::subclass::prelude
.