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
Document Dependencies (Main Use Case)
# Document all dependencies
# Document specific dependencies
# Custom output directory
Output:
docs/deps/
tokio/index.md
axum/index.md
serde/index.md
Perfect for:
- 📚 LLM context with comprehensive API docs
- 🔍 Understanding dependencies without leaving the terminal
- 📝 Offline documentation for your entire stack
Document Your Own Crate
# Automatically generates JSON and converts to markdown
# Custom output directory
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
)
Note: Requires Rust nightly to generate rustdoc JSON.
License
MIT or Apache-2.0