# Rust-LS A Dockerized Rust Language Server ## Install steps 1. Build the docker image with the following command: ```bash docker build . -t rust-ls ``` 2. Initilize your project's *Cargo.lock* file by creating a project with `Cargo Init [PROJECT_NAME]` and replace the following section of the **rust-ls** file *(Delete the text inside [])*: ```bash docker run -i --rm -u $(stat -c '%u:%g' .) -v "$PWD:$PWD:[ro,z]Z" -w "$PWD" rust-ls "$@" ``` 3. Open Visual Studio Code with the *rust-analyzer* extension, and edit the rust-analyzer server directory to where the **rust-ls** file is. Open your project directory and let it initilize. 4. Delete the junk *target* folder. and modify your **rust-ls* back to the original state ```bash docker run -i --rm -u $(stat -c '%u:%g' .) -v "$PWD:$PWD:Z" -w "$PWD" rust-ls "$@" ``` ### You should be all set!