Open JohnScience opened 2 years ago
for docs.rs, only the root crate is documented, so all rustdocflags set in package.metadata.docs.rs are only applied to that crate
when running rustdoc locally, you can use cargo rustdoc --
to run a doc-build of the root crate using specific rustdocflags (or alternatively RUSTDOCFLAGS=
cargo doc --no-deps; but I find cargo rustdoc much more meaningful as "document this one crate with flags")
Thank you so much for this wonderful repo!
I was trying to add a markdown file with LaTeX that I exported from
evcxr
Jupyter notebook (.ipynb) into a crate that had several dependencies. So far it seems thatrustdocflags
is invasive and applies to ALL crates for whichrustdoc
builds documentation. As a result, building documentation fails because as error suggestsnone of the crates-dependencies have
docs-header.html
in their./src/
directory.How to reproduce the error
The error can be reproduced by adding a dependency to
Cargo.toml
Output