2.2. Creating a Rust project
Create a new Rust project that is set up according to the Cargo conventions. For more information on Cargo conventions, see The Cargo directory structure and file placements.
Procedure
Create a Rust project:
$ cargo new --bin <project_name>Replace
<project_name>with your project name.-
To edit the project code, edit the main executable file
main.rsand add new source files to thesrcsubdirectory.