Installation
Before anything else, rust-src is mandatory for the project to work correctly,
so don’t forget to run rustup component add rust-src if you’re not sure if you
have it installed.
Right now, the primary editor for Rust Glancer is VS Code. It should be usable with other editors that natively support LSP, and you can try following the instructions rust-analyzer provides.
Native support for more editors is expected in future.
When you install Rust Glancer, do not forget to turn rust-analyzer off. They should work together just fine (I’ve done that and did not have any conflicts), but it’s kind of meaningless to run both.
VS Code
You have two options:
- Install the extension from the official marketplace.
- Build and install VSIX from the repository.
The extension is maintained and will be updated, but given that VS Code extensions often become targets of attacks nowadays, I’d probably recommend building from source (or at least disabling auto-updates). Please do not forget to update it from time to time though. There will be good things in updates (probably).
Installing from VSIX
- (Optional) Install just
- Clone the repository
- Run
just package-vsix(or go toeditors/codeand build vianpm) - Open VS Code, navigate to extensions tab, click on
...and chooseInstall from VSIX. - Install the extension.
- ???
- PROFIT