ast-doc-core
Core library for ast-doc: a four-stage pipeline for generating optimized llms.txt documentation from codebases.
Pipeline
- Ingestion — File discovery, git metadata capture, directory tree generation
- Parser — tree-sitter AST extraction with pre-computed strategy variants
- Scheduler — Token budget optimization with intelligent degradation
- Renderer — Markdown assembly with anti-bloat rules
Usage
use ;
use PathBuf;
let config = AstDocConfig ;
let result = run_pipeline.expect;
println!;
Feature Flags
| Feature | Language | Default |
|---|---|---|
lang-rust |
Rust (.rs) |
Yes |
lang-python |
Python (.py) |
No |
lang-typescript |
TypeScript/JavaScript (.ts, .tsx, .js, .jsx) |
No |
lang-go |
Go (.go) |
No |
lang-c |
C (.c, .h) |
No |
all-languages |
All of the above | No |
License
Apache-2.0