]> git.lizzy.rs Git - rust.git/commit
add a "standalone" path for doc::Standalone to be able to exclude it
authorPietro Albini <pietro.albini@ferrous-systems.com>
Wed, 5 Oct 2022 10:45:52 +0000 (12:45 +0200)
committerPietro Albini <pietro.albini@ferrous-systems.com>
Wed, 5 Oct 2022 12:32:09 +0000 (14:32 +0200)
commit004b8b98d626a89b5d4cdc630ff337c0f4ea919f
tree96e9c13a87a142af94b2f805b65c0812bb712fda
parentafe29e48bc4d57c1bb73228ba8d70dc8f42436fc
add a "standalone" path for doc::Standalone to be able to exclude it

Before this commit, the path for the doc::Standalone step was "src/doc",
which is accurate as the standalone docs source files live at the root
of the "src/doc" directory tree.

Unfortunately, that caused bad interactions when trying to exclude it
with `--exclude src/doc`. When an exclusion is passed to bootstrap, it
will exclude all steps whose path *ends with* the exclusion, which
results in the Cargo book (src/tools/cargo/src/doc) to also be excluded.

To work around this problem, this commit adds the "standalone" path as
an alternate path for doc::Standalone, allowing `--exclude standalone`
to work without side effects.
src/bootstrap/doc.rs