Recently, yesterday, I discovered that you can use
pub use mod_name to re-export a module hiding part of the original path. This is very useful for re-exporting specific modules under the same name, for example you can create a module
unix :: file and another one
windows :: file and re-export as
file without having to create an abstraction to access specific platform versions:
# [cfg (target_family = "unix")] pub use unix :: file; # [cfg (target_family = "windows")] pub use windows :: file;
If you know other useful secrets like that, tell me.