🤖 AI-Generated: Created by Claude (Anthropic AI)
A Cargo subcommand that generates markdown documentation for Rust crates and their dependencies.
Requires Rust nightly (uses unstable rustdoc features):
rustup install nightly
cargo install cargo-doc-md# Document current crate + all dependencies
cargo doc-md
# Document specific packages
cargo doc-md -p tokio -p serde
# Document all workspace members
cargo doc-md --workspace
# Custom output directory
cargo doc-md -o docs/Run cargo doc-md --help for all options.
target/doc-md/
index.md # Master index
your_crate/
index.md # Crate overview
module1.md # One file per module
sub/
nested_module.md
tokio/
index.md
...
- Multi-file output with one markdown file per module
- Master index listing all documented crates
- Breadcrumb navigation showing module hierarchy
- Automatic dependency discovery and documentation
- Handles multiple versions of the same dependency
MIT or Apache-2.0