Skip to main content

Module tty_render

Module tty_render 

Source
Expand description

Terminal adapter for canonical Diagnostic.

All color-aware (colored) rendering lives here — the canonical model in aver::diagnostics stays runtime-neutral so the playground / LSP can reuse it without pulling tty dependencies.

Single entry point: render_tty — adaptive color rendering for terminals. JSON emission goes through canonical serde (aver::diagnostics::AnalysisReport::to_json for bundles, serde_json::to_string(&diagnostic) for individual records).

Functions§

render_tty
Adaptive terminal renderer. Errors get full treatment (fields + source); warnings stay compact unless verbose is set.