@sir I did some tinkering yesterday on an implementation of this for Rust code. I doesn't work yet but I did set up the JSON generation and source parsing. The next step is to traverse the AST and generate the actual annotations.
https://git.sr.ht/~wezm/annotate-rust