Skip to content

docs: correct workspace publishing guidance in Chapter 14 - #4884

Open
orkirson wants to merge 1 commit into
rust-lang:mainfrom
orkirson:docs/cargo-workspace-publish
Open

orkirson wants to merge 1 commit into
rust-lang:mainfrom
orkirson:docs/cargo-workspace-publish

Conversation

@orkirson

@orkirson orkirson commented Oct 31, 2026 •

Copy link
Copy Markdown

Summary

Chapter 14.3 incorrectly states that Cargo workspace crates must be published separately.

This PR updates the documentation to clarify that:

  • Each crate is published as a separate package.
  • A specific crate can be published using the -p flag.
  • All workspace members can be published using cargo publish --workspace.

Verification

  • Compared the updated guidance against the official Cargo publish documentation.
  • Confirmed that the change affects only src/ch14-03-cargo-workspaces.md.
  • This is a documentation-only change. No application code was modified or executed.

AI Assistance

I used ChatGPT (GPT-6) to help identify the documentation issue, review the wording, and prepare this pull request description. I reviewed the proposed change and checked the command against the official Cargo documentation.

Fixes #4868.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chapter 14 says workspace crates must be published one at a time; cargo publish --workspace is stable

1 participant