package
binary crate
root module
module
module
module
...
library crate
root module
module
module
module
...
src/lib.rs
for a library crate or src/main.rs
for a binary crate) for code to compile.mod garden
;. The compiler will look for the module’s code in these places:
src/garden.rs
src/garden/mod.rs