https://github.com/rust-analyzer/rust-analyzer API docs: https://rust-analyzer.github.io/rust-analyzer/ra_ide_api/index.html Not sure whether it's up to the task yet.