Skip to content

[FEATURE REQUEST] Don't re-export dependencies #966

Closed
@JMS55

Description

@JMS55

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions