rustdoc-json-to-markdown
🤖 AI-Generated Project: Created entirely by Claude (Anthropic AI). See ATTRIBUTION.md.
Generate markdown documentation for Rust crates and their dependencies. Perfect for LLM context and offline viewing.
Installation
Usage
One Command for Everything (like cargo doc
)
# Document your crate + all dependencies
# Custom output directory
Output:
docs/
index.md # Your crate
deps/
tokio/index.md
axum/index.md
serde/index.md
Perfect for:
- 📚 LLM context with comprehensive API docs
- 🔍 Understanding your entire stack without leaving the terminal
- 📝 Offline documentation for crate + dependencies
Document Only Dependencies
# All dependencies
# Specific dependencies
Features
- One-command workflow - Automatically generates JSON and converts to markdown
- Dependency automation - Auto-discovers and documents dependencies
- Module organization - Hierarchical structure with full paths (
crate::module::Type
) - Complete type info - Structs, enums, functions, traits, with full signatures
- Clean tables - Field tables, variant tables, method listings
- Multi-version support - Handles multiple versions of the same dependency
- Smart handling - Gracefully skips deps that fail to build
CLI Reference
# Default (no args): Documents current crate + all dependencies
# With --all-deps or --deps: Documents only dependencies
# With INPUT file: Converts that JSON file
Note: Requires Rust nightly.
License
MIT or Apache-2.0