Cargo doc: is it possible to document only one dependency
⚓ Rust 📅 2025-12-15 👤 surdeus 👁️ 2Right now my CI is running cargo doc --no-default-features --features="docs" --no-deps --workspace but I want one and only one child crate also to be included in the documentation. Is this possible at all (nightly or not)?
I want to include the vrl crate in the docs. I'm not opposed to running multiple commands or to any hackery I may have to do, I just want it to work.
What I tried:
cargo doc --no-default-features --features="docs" --no-deps --workspace -p vrl
and got
error: package(s) `vrl` not found in workspace
While looking this up I also found GitHub - Bunogi/cargo-makedocs: A cargo subcommand to build documentation for development easier but reading the source code it looks like it only would've done the same command I tried before... Any help is appreciated.
4 posts - 3 participants
🏷️ Rust_feed