I had trouble with the module system at first as well. The reason has more to do with the Rust book than with the module system itself, I think. Although the book is great, if the Crates and Modules chapter were more thorough then I think there would be much fewer people searching for answers elsewhere. Version two of the book is underway so maybe this will be addressed.
I had trouble with the module system at first as well. The reason has more to do with the Rust book than with the module system itself, I think. Although the book is great, if the Crates and Modules chapter were more thorough then I think there would be much fewer people searching for answers elsewhere. Version two of the book is underway so maybe this will be addressed.
You can read the current incarnation of the chapter here, seems like they’ve improved it and added more step-by-step examples.