I have module files generated from protobuf definitions. There are a lot of files and they will grow with time. This is the structure:
Use dtolnay's automod crate.
automod::dir!("path/to/directory"); This macro expands to one or more mod items, one for each source file in the specified directory. The path is given relative to the directory containing Cargo.toml.
automod::dir!("path/to/directory");
This macro expands to one or more mod items, one for each source file in the specified directory.
The path is given relative to the directory containing Cargo.toml.