Shows `document-features` as a crate in the Rustdoc
BartMassey opened this issue · 7 comments
I think if you run cargo doc with just -p rbj_eq
it might work :)
The "crates" section won't be rendered on docs.rs, see e.g. https://docs.rs/nate/0.1.10/nate/
I believe rustdoc should be called with the --no-deps option
cargo doc --no-deps
Thanks much for the time and suggestions! I'd like to be able to have full Rustdoc on my github for the crates my app actually uses, without documenting this crate which is really a doc-only dependency, though. For now I'll just continue to document features manually, I guess.
Did you try
cargo doc --no-deps
It really shouldn't produce docs for dependencies
cargo doc --no-deps
doesn't produce docs for any dependencies, yes. I want docs for my "real" dependencies, so that the docs can be standalone on Github. (I republish some items from my dependencies.)
The thing is that this is also a real dependency.
So I don't know if there are flags in rustdoc to select what dependencies to show.
Maybe you can inject JavaScript to hide it with --html-in-header or something.