Inline reexports

I usually group imports by the root path but when you want to reexport a subset of those you will end up with a duo:

pub use some_mod::Foo;
use some_mod::{Bar, Baz};

It would be nice if it could be done inline so it doesn't require you to duplicate the path

use some_mod::{Bar, Baz, pub Foo};

Of course it might be preferred to use a separate section for reexports to make it more visible but I think for internal deps it is less of a concern compared to organizing imports based on their originating crate.

1 Like

That syntax seems potentially reasonable, but I do think it would have the net effect of making exports less visible.

3 Likes