Skip to content

Directory Structure

We follow the best practice structure here which is also made by cargo.

The structure can be a workspace with multiple packages (in sub directories) or a single package.

Cargo.toml / Cargo.lock

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.

  • - the start point of a binary
  • - the start point of a library

Modules with submodules will have sub directories. Here the 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.