rust-analyzer is a modular compiler frontend for the Rust language. Our plugin that automatically converts unsafe code to safe code is built upon that.
- Install the VScode for Linux from link: https://code.visualstudio.com/docs/setup/linux
- Install Rust for Linux by command:
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Go the extension source code:
$ cd rust-analyzer
- Install Nodejs and npm for Linux by command:
$ sudo apt install nodejs
$ curl -L https://npmjs.org/install.sh | sudo sh
- Install the extension to VScode:
cargo xtask install
Now the extension is installed in your VScode, you can open the Demo project and test the safe suggestion plugin.