diff --git a/DEV.md b/DEV.md index 795c395..5da55d6 100644 --- a/DEV.md +++ b/DEV.md @@ -97,6 +97,7 @@ cargo rudra # for crate compilation ### Setup rust-analyzer Run: + ``` cd .. git clone https://github.com/rust-lang/rust.git rust-nightly-2021-10-21 @@ -108,6 +109,7 @@ git submodule update ``` Then, add this to the workspace setting (`.vscode/settings.json`): + ``` { "rust-analyzer.rustc.source": "/Cargo.toml" @@ -115,14 +117,18 @@ Then, add this to the workspace setting (`.vscode/settings.json`): ``` If you have any issues with `rust-analyzer` and proc-macros: + 1. After running the above code, still in the `rust-nightly-2021-10-21` directory, run: + ``` cd src/tools/rust-analyzer cargo build --release ``` + 2. Add this to the workspace setting (`.vscode/settings.json`): + ``` { "rust-analyzer.server.path": "/src/tools/rust-analyzer/target/release/rust-analyzer" } -``` \ No newline at end of file +```