-
Note Full disclosure: I wrote this crate. https://github.com/dtolnay/cargo-docs-rs I noticed this in the contribution guide: Lines 155 to 169 in 01ed7b5 For my own projects, iterating on docs locally and also checking the documentation build in CI, I have a Lines 157 to 163 in 01ed7b5 The output of $ cargo docs-rs --verbose
Running `cargo rustdoc -Zunstable-options -Zrustdoc-map -Zhost-config -Ztarget-applies-to-host
--lib --all-features --target=x86_64-unknown-linux-gnu
--config='build.rustflags=["--cfg", "tokio_unstable", "--cfg", "tokio_taskdump"]'
--config='host.rustflags=["--cfg", "tokio_unstable", "--cfg", "tokio_taskdump"]'
--config='build.rustdocflags=["-Zunstable-options", "--cfg=docsrs", "--cfg", "docsrs", "--cfg", "tokio_unstable", "--cfg", "tokio_taskdump", "--extern-html-root-takes-precedence"]'
--config='doc.extern-map.registries.crates-io="https://docs.rs"'
--verbose` This matches the rustdoc command in tokio's docs.rs build log https://docs.rs/crate/tokio/1.37.0/builds/1172427 aside from some docs.rs-specific details ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Seems reasonable enough to me. I would still want the existing command in the documentation for people who don't want to install the tool, but making this the first recommendation sounds good to me. We currently have two commands in the docs: one with and one without unstable features. But we should probably drop the one without unstable features since it isn't how docsrs will build it, and it emits warnings about broken links. Do you want to submit a PR? |
Beta Was this translation helpful? Give feedback.
Seems reasonable enough to me. I would still want the existing command in the documentation for people who don't want to install the tool, but making this the first recommendation sounds good to me.
We currently have two commands in the docs: one with and one without unstable features. But we should probably drop the one without unstable features since it isn't how docsrs will build it, and it emits warnings about broken links.
Do you want to submit a PR?