Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit bd8be32

Browse files
committed
Better rust-analyzer.linkedProjects value
1 parent a24213d commit bd8be32

File tree

1 file changed

+5
-28
lines changed

1 file changed

+5
-28
lines changed

.vscode/settings.json

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@
77
"rust-analyzer.cargo.features": ["unstable-features"],
88
"rust-analyzer.linkedProjects": [
99
"./Cargo.toml",
10-
//"./build_sysroot/sysroot_src/library/std/Cargo.toml",
1110
{
12-
"roots": [
13-
"./example/mini_core.rs",
14-
"./example/mini_core_hello_world.rs",
15-
"./example/mod_bench.rs"
16-
],
1711
"crates": [
1812
{
1913
"root_module": "./example/mini_core.rs",
@@ -36,34 +30,17 @@
3630
]
3731
},
3832
{
39-
"roots": ["./example/std_example.rs"],
40-
"crates": [
41-
{
42-
"root_module": "./example/std_example.rs",
43-
"edition": "2018",
44-
"deps": [{ "crate": 1, "name": "std" }],
45-
"cfg": [],
46-
},
47-
{
48-
"root_module": "./build_sysroot/sysroot_src/library/std/src/lib.rs",
49-
"edition": "2018",
50-
"deps": [],
51-
"cfg": [],
52-
},
53-
]
54-
},
55-
{
56-
"roots": ["./y.rs"],
33+
"sysroot_src": "./build_sysroot/sysroot_src/library",
5734
"crates": [
5835
{
5936
"root_module": "./y.rs",
60-
"edition": "2018",
61-
"deps": [{ "crate": 1, "name": "std" }],
37+
"edition": "2021",
38+
"deps": [],
6239
"cfg": [],
6340
},
6441
{
65-
"root_module": "./build_sysroot/sysroot_src/library/std/src/lib.rs",
66-
"edition": "2018",
42+
"root_module": "./example/std_example.rs",
43+
"edition": "2015",
6744
"deps": [],
6845
"cfg": [],
6946
},

0 commit comments

Comments
 (0)