Closed eira-fransham closed 6 years ago
It's an interesting question about whether to handle other languages. There are a few multi-language tools around - Kythe, DXR, Sourcegraph, and SearchFox (the last two have Rust support via the same rls-analysis crate as cargo-src).
For cargo-src, I tried to give a more Rust-focussed experience and to keep the code relatively simple by only handling Rust code. I think I want to keep it that way, at least until we have a great Rust experience.
So the reason I started doing work on this project is because I had the dream of doing something similar myself, although it was rather more ambitious - allowing you to click on any file in any language and get syntax highlighting and definition/uses. My plan was to embed Python and use Pygments (even for Rust, which would allow us to swap out the styling a lot easier), then have some config file that specifies the language server per language. I think that languages that I'd definitely want supported are:
Again though, that's just the languages that I care about. Probably
cargo src
is a poor name if you support non-Rust languages, my project was going to be calledskim
.