v0.2.0
Pluggable, feature-gated source-context renderer
Adds annotate-snippets (the rust-lang toolchain's diagnostic style) as an alternative to ariadne, selectable at runtime — no breaking change to the public API.
- Cargo features:
ariadne(default-on, unchanged) andannotate-snippets(opt-in). Both deps are optional. SourceRendererenum +DiagnosticMessage::to_text_with_renderer(ctx, &opts, Option<SourceRenderer>).to_text/to_text_with_optionsdelegate withNone, so existing callers are untouched.- Annotate-snippets path renders the native
error[CODE]:/-->/^^^look.
By-design deltas in the annotate-snippets path: no OSC 8 hyperlinks; detail labels render as Context (no per-DetailKind color / Fixed(249) faded blend); empty padding-details skipped (native folding). The JSON wire shape (rendered) is unchanged — it still uses the default renderer.
Also adds cargo xtask verify (local CI mirror) and excludes internal tooling/docs from the published crate.
Full PR: #1