I have three crates: foo, bar and baz, and foo is a common used thrid-party crate, I import and use it in crate bar.
And now I want that whoever uses my crate bar, he/she can use foo as well without manually import it( to avoid the version conflict and for the sake of easy using), so I write this line in the top module(lib.rs) of crate bar:
pub use foo;
But I found that if I want to use functions in foo, for example writing codes in crate baz, I cannot use
bar::foo::f, this is not exactly what I want.
So how to re-export crates, to let users crate/module name directly?