Update rust-analyzer config

mod_bench no longer exists and there is no benefit to not having a
sysroot available for mini_core and mini_core_hello_world.
This commit is contained in:
bjorn3 2025-03-05 15:51:35 +00:00
parent 5d03df9431
commit 5cdb866356
2 changed files with 26 additions and 32 deletions

33
.vscode/settings.json vendored
View file

@ -1,41 +1,40 @@
{
"editor.formatOnSave": true,
// in case rustc.source is disabled for performance reasons; disable the errors about this
"rust-analyzer.diagnostics.disabled": ["unresolved-extern-crate", "unresolved-macro-call"],
"rust-analyzer.diagnostics.disabled": [
"unresolved-extern-crate",
"unresolved-macro-call"
],
"rust-analyzer.rustc.source": "discover",
"rust-analyzer.imports.granularity.enforce": true,
"rust-analyzer.imports.granularity.group": "module",
"rust-analyzer.imports.prefix": "crate",
"rust-analyzer.cargo.features": ["unstable-features"],
"rust-analyzer.cargo.features": [
"unstable-features"
],
"rust-analyzer.linkedProjects": [
"./Cargo.toml",
"./build_system/Cargo.toml",
{
"sysroot_src": "./build/stdlib/library",
"crates": [
{
"root_module": "./example/mini_core.rs",
"edition": "2018",
"edition": "2015",
"deps": [],
"cfg": [],
},
{
"root_module": "./example/mini_core_hello_world.rs",
"edition": "2018",
"deps": [{ "crate": 0, "name": "mini_core" }],
"edition": "2015",
"deps": [
{
"crate": 0,
"name": "mini_core"
}
],
"cfg": [],
},
{
"root_module": "./example/mod_bench.rs",
"edition": "2018",
"deps": [],
"cfg": [],
},
]
},
{
"sysroot_src": "./build/stdlib/library",
"crates": [
{
"root_module": "./example/std_example.rs",
"edition": "2015",

View file

@ -5,7 +5,10 @@
"initialization_options": {
"diagnostics": {
// in case rustc.source is disabled for performance reasons; disable the errors about this
"disabled": ["unresolved-extern-crate", "unresolved-macro-call"]
"disabled": [
"unresolved-extern-crate",
"unresolved-macro-call"
]
},
"rustc": {
"source": "discover"
@ -18,22 +21,25 @@
"prefix": "crate"
},
"cargo": {
"features": ["unstable-features"]
"features": [
"unstable-features"
]
},
"linkedProjects": [
"./Cargo.toml",
"./build_system/Cargo.toml",
{
"sysroot_src": "./build/stdlib/library",
"crates": [
{
"root_module": "./example/mini_core.rs",
"edition": "2018",
"edition": "2015",
"deps": [],
"cfg": []
},
{
"root_module": "./example/mini_core_hello_world.rs",
"edition": "2018",
"edition": "2015",
"deps": [
{
"crate": 0,
@ -42,17 +48,6 @@
],
"cfg": []
},
{
"root_module": "./example/mod_bench.rs",
"edition": "2018",
"deps": [],
"cfg": []
}
]
},
{
"sysroot_src": "./build/stdlib/library",
"crates": [
{
"root_module": "./example/std_example.rs",
"edition": "2015",