Skip to content

Commit 957e3d8

Browse files
committed
feat: create rust-analyzer project selector
Substrate development is HEAVY. Our simple chain has over 2000 dependencies in total, most of which are unused and just included because of the umbrella dependency `polkadot-sdk`. This new crate allows you to select which crates and dependencies you want rust-analyzer to index: ```sh just select just select pallet-torus0,pallet-emission0 just select node 1 # will only fetch up to second-level transient dependencies ```
1 parent 80af423 commit 957e3d8

File tree

9 files changed

+145079
-9
lines changed

9 files changed

+145079
-9
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@
1919

2020
# Git Hooks
2121
.pre-commit-config.yaml
22+
23+
rust-project.json

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
"rust-analyzer.check.extraEnv": {
99
"SKIP_WASM_BUILD": "1"
1010
},
11-
"rust-analyzer.cargo.features": ["runtime-benchmarks", "testnet"],
11+
// "rust-analyzer.cargo.features": ["runtime-benchmarks", "testnet"],
12+
"rust-analyzer.check.overrideCommand": [
13+
"cargo",
14+
"check",
15+
"--message-format=json"
16+
],
1217
"coverage-gutters.coverageFileNames": ["target/cov.xml"],
1318
// Spell checker
1419
"cSpell.words": [

0 commit comments

Comments
 (0)