rust-lang / book

The Rust Programming Language
https://doc.rust-lang.org/book/
Other
15.26k stars 3.44k forks source link

infra: change how packages are opted out of workspaces #4083

Closed chriskrycho closed 1 month ago

chriskrycho commented 1 month ago

The trpl, mdbook-trpl-note, and mdbook-trpl-listing crates should never be part of a host workspace: neither in rust-lang/book nor in rust-lang/rust. They are always built as independent packages, so they do not end up depending implicitly on the host’s workspace dependencies.

Accordingly, opt out by setting an empty [workspace] key in each of the packages' Cargo.toml files so that they do not have to be configured in both places they might be used.

Helps unblock rust-lang/rust#131859