//in lib.rs
mod private_prelude;
mod public_prelude;
pub use public_prelude as prelude;
error[E0365]: `public_prelude` is only public within the crate, and cannot be re-exported outside
--> src/lib.rs:9:9
|
9 | pub use public_prelude as prelude;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ re-export of crate public `public_prelude`
|
= note: consider declaring type or module `public_prelude` with `pub`
is it possible to simultaneously rename and export a module in a library?
ie. make it so that public_prelude is only visible externally as prelude
if I declare public_prelude with pub mod then both public_prelude and prelude will be visible I think