summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJack Clayton <jackclayto@gmail.com>2022-06-16 11:53:41 +0800
committerJack Clayton <jackclayto@gmail.com>2022-06-17 11:36:06 +0800
commitbe87cc9fa624233a8bf2f489399f7837e2601bd3 (patch)
treeed96b87f95ae945e29a48681959ab928c177f753 /README.md
parentb19f74e8cfaba7775e8ff2d74cab9cb862fb1473 (diff)
Add lsp command to fix rust-analyzer
Diffstat (limited to 'README.md')
-rw-r--r--README.md19
1 files changed, 1 insertions, 18 deletions
diff --git a/README.md b/README.md
index dd96a59..12a7781 100644
--- a/README.md
+++ b/README.md
@@ -126,24 +126,7 @@ After every couple of sections, there will be a quiz that'll test your knowledge
## Enabling `rust-analyzer`
-`rust-analyzer` support is provided, but it depends on your editor
-whether it's enabled by default. (RLS support is not provided)
-
-To enable `rust-analyzer`, you'll need to make Cargo build the project
-with the `exercises` feature, which will automatically include the `exercises/`
-subfolder in the project. The easiest way to do this is to tell your editor to
-build the project with all features (the equivalent of `cargo build --all-features`).
-For specific editor instructions:
-
-- **VSCode**: Add a `.vscode/settings.json` file with the following:
-```json
-{
- "rust-analyzer.cargo.features": ["exercises"]
-}
-```
-- **IntelliJ-based Editors**: Using the Rust plugin, everything should work
- by default.
-- _Missing your editor? Feel free to contribute more instructions!_
+Run the command `rustlings lsp` which will generate a `rust-project.json` at the root of the project, this allows [rust-analyzer](https://rust-analyzer.github.io/) to parse each exercise.
## Continuing On