Skip to content

Glossary: Rust in Practice

-p (package flag)

Also written: -p, --package

A Cargo option that picks which workspace member a command applies to, using the package name with its hyphens, as in `cargo run -p price-tag`. `--workspace` takes every member.

Where the book teaches it

Related terms

workspacecargo add