2.3. Creating a Rust library project
Complete the following steps to create a Rust library project by using the Cargo build tool.
Procedure
Create a Rust library project:
$ cargo new --lib <project_name>Replace
<project_name>with the name of your Rust project.-
To edit the project code, edit the
src/lib.rssource file.