Creating a Workspace
Create the Root Project Directory
Create a Cargo.toml
in Project Root
Use cargo
to Create the Packages
Dependencies Between Packages
In this example, the
project_app
crate will depend on theproject_library
crate.
Edit <project_root>/project_app/Cargo.toml
Bringing project_library
Code into Scope
<project_root>/project_app/src/main.rs