Better rust-analyzer.linkedProjects value

This commit is contained in:
bjorn3 2022-10-26 18:17:12 +00:00
parent a24213d81b
commit bd8be325ab

33
.vscode/settings.json vendored
View File

@ -7,13 +7,7 @@
"rust-analyzer.cargo.features": ["unstable-features"],
"rust-analyzer.linkedProjects": [
"./Cargo.toml",
//"./build_sysroot/sysroot_src/library/std/Cargo.toml",
{
"roots": [
"./example/mini_core.rs",
"./example/mini_core_hello_world.rs",
"./example/mod_bench.rs"
],
"crates": [
{
"root_module": "./example/mini_core.rs",
@ -36,34 +30,17 @@
]
},
{
"roots": ["./example/std_example.rs"],
"crates": [
{
"root_module": "./example/std_example.rs",
"edition": "2018",
"deps": [{ "crate": 1, "name": "std" }],
"cfg": [],
},
{
"root_module": "./build_sysroot/sysroot_src/library/std/src/lib.rs",
"edition": "2018",
"deps": [],
"cfg": [],
},
]
},
{
"roots": ["./y.rs"],
"sysroot_src": "./build_sysroot/sysroot_src/library",
"crates": [
{
"root_module": "./y.rs",
"edition": "2018",
"deps": [{ "crate": 1, "name": "std" }],
"edition": "2021",
"deps": [],
"cfg": [],
},
{
"root_module": "./build_sysroot/sysroot_src/library/std/src/lib.rs",
"edition": "2018",
"root_module": "./example/std_example.rs",
"edition": "2015",
"deps": [],
"cfg": [],
},