Hi I have a project I am having trouble moving the mod system from 2015 rust to 2018.
The 2015 code simplified has a structure like
src
--- lib.rs
--- elements
---- mod.rs
---- element1.rs
---- element2.rs
---- element3.rs
.........
mod.rs contained lines like
pub mod element1;
pub mod element2;
pub mod element3;
....
In lib.rs I had
pub mod elements;
The guide seems to indicate mod.rs is no longer needed
but the build returns
file not found for module `elements`
--> src/lib.rs:25:9
|
25 | pub mod elements;
How can I declare multiple files under a subdirectory as modules ?
Thanks