Cargo Workspace

File Structure

Cargo.toml
Cargo.lock
release/
adder
	├── Cargo.toml
	├── src/
add-one
	├── Cargo.toml
	├── src/

Top level Cargo.toml

[workspace]
members = ["adder", "add-one"]

Depend on local crate in Cargo.toml

#adder/Cargo.toml

[dependencies]
add-one = { path = "../add-one" }

Special Workspace Commands

Test single package

cargo test -p add-one

#![allow(unused)]
fn main() {
println!("Wow cool")
println!("Wow cool")
println!("Wow cool")
}

Must publish each crate individually