The general layout of a clean repository
When it comes to a clean layout, we must have directories in the repository that have a single focus, just like our isolated code, which is modularized. In the clean approach taken in this chapter, our repository will have the following layout:
├── Cargo.toml ├── README.md ├── .dockerignore ├── .gitignore ├── .github │ . . . ├── builds │ . . . ├── database │ . . . ├── docker-compose.yml ├── scripts │ . . . ├── src │ . . . └── tests . . .
These files and directories have the following responsibilities:
Cargo.toml
: Defines the requirements for the Rust build.
...