Incremental engine for long horizon agents 🌟 Star if you like it!
Rust agentic-data-frameworkaiai-agentschange-data-capturecodebase-intelligencecontext-engineeringdata-engineeringdata-indexingdata-processingetlhelp-wantedindexingknowledge-graphllmlong-horizon-agentpythonragreal-timerustsemantic-search
Files Transform
Rust equivalent of the Python files_transform
example.
It walks a directory of markdown files, memoizes the markdown-to-HTML transform per file, and writes one HTML file per markdown input.
Build
cd examples/rust/files_transform
cargo build --release
Usage
Run against the sample data from the Python example:
cargo run -- ../../files_transform/data ./output_html
Defaults:
- source dir:
../../files_transform/data - output dir:
./output_html
Notes
- The markdown→HTML render is memoized, so unchanged inputs skip the work.
- Output uses a declarative
DirTarget(the Rust analogue of Python'slocalfsdirectory target): files are written/updated, unchanged files are skipped, and an output whose source markdown was deleted is removed automatically on the next run. - Like the Python example (whose
walk_dirdefaults torecursive=False), only top-level*.mdfiles are processed. - Markdown rendering uses
pulldown-cmarkwith GFM options (tables, strikethrough, tasklists). It is not byte-identical to Python'smarkdown-it-py("gfm-like")— notably, pulldown-cmark does not "linkify" bare URLs (only angle-bracket<https://…>autolinks render).