We follow the best practice structure here which is also made by
The structure can be a workspace with multiple packages (in sub directories) or a single package.
This contains some metadata and is stored in the root of the workspace and package. The Manifest Format
The main directory for all sources of the library or binary in the package.
main.rs- the start point of a binary
lib.rs- the start point of a library
Modules with submodules will have sub directories. Here the
mod.rs contains the parent module and the child modules are there as separate files or directories with their files.
Containing integration tests of each package.
Everything created while building, debugging and testing will be made here. It is also the folder you find your created binaries only in the top level workspace or package.