Docs.rs metadata all-features workspace-wide
⚓ Rust 📅 2026-01-14 👤 surdeus 👁️ 2Hi
I have a workspace with a lot of crates. The issue that in docs.rs some types are not documented since they are behind non-default feature flags.
For a single package it can be solved by setting some metadata in Cargo.toml:
[package.metadata.docs.rs]
all-features = true
But is there a way to configure this once in my workspace and make it apply to all packages in my workspace? E.g:
[workspace.metadata.docs.rs]
# Include types from features not compiled by default in rustdocs.
all-features = true
Or isn't this possible and does it need to be done for each package individually since docs.rs does not have any context about the workspace since a package is pushed individually?
1 post - 1 participant
🏷️ Rust_feed