Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

LLM Usage

Cargo follows the same LLM usage policy as rust-lang/rust. Please read it before using LLM assistance when participating in rust-lang/cargo.

For clarity, this includes any updates to this policy made subsequent to Cargo’s adoption of it; it is our intention to remain aligned with the current policy on an ongoing basis.

When reading the policy in the context of Cargo:

  • Read rust-lang/rust as rust-lang/cargo.
  • Read the ratifying teams as the Cargo team.
  • Read “diagnostics” as generally encompassing Cargo’s user-facing output.
  • Ignore parts that do not apply to Cargo, such as those specific to the compiler or the language.
  • The Cargo team will over time more precisely define what we mean by “critical” areas. We expect to adopt whatever tooling rust-lang/rust adopts to specify this more precisely.
  • When in doubt, the Cargo team will provide any and all Cargo-specific interpretations of the policy, until such time as the policy itself is updated to encompass Cargo.

For suggestions about how to use LLMs well, and how to review LLM-created PRs, see the rustc-dev-guide.