From bd8be325ab7381b7372047fd4316de24dd8cc2a3 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Wed, 26 Oct 2022 18:17:12 +0000 Subject: [PATCH] Better rust-analyzer.linkedProjects value --- .vscode/settings.json | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 13301bf20a5..95603bca595 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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": [], },