Skip to content

Commit 6e4d643

Browse files
author
Jonas Schievink
authored
Make build scripts and proc macros work with the suggested rust-analyzer config (rust-lang#1365)
1 parent 4383648 commit 6e4d643

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/building/suggested.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,16 @@ you can write: <!-- date: 2022-04 --><!-- the date comment is for the edition be
3737
"--edition=2021"
3838
],
3939
"editor.formatOnSave": true,
40-
"rust-analyzer.cargo.buildScripts.enable": false,
40+
"rust-analyzer.cargo.buildScripts.enable": true,
41+
"rust-analyzer.cargo.buildScripts.overrideCommand": [
42+
"cargo",
43+
"check",
44+
"-p",
45+
"rustc_driver",
46+
"--message-format=json"
47+
],
4148
"rust-analyzer.rustc.source": "./Cargo.toml",
42-
"rust-analyzer.procMacro.enable": false
49+
"rust-analyzer.procMacro.enable": true,
4350
}
4451
```
4552

0 commit comments

Comments
 (0)