Filesystem Hierarchy

    The module content is found at:

    • src/garden.rs (modern Rust 2018 style)
    • src/garden/mod.rs (older Rust 2015 style)

    Similarly, a garden::vegetables module can be found at:

    • (older Rust 2015 style)

    The crate root is in:

    • src/lib.rs (for a library crate)
    • The change from module/mod.rs to doesn’t preclude the use of submodules in Rust 2018. (It was mandatory in Rust 2015.)

      The following is valid:

      src/ ├── main.rs ├── top_module.rs └── top_module/ └── sub_module.rs