mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
74 lines
2.5 KiB
JSON
74 lines
2.5 KiB
JSON
{
|
|
// source for rustc_* is not included in the rust-src component; disable the errors about this
|
|
"rust-analyzer.diagnostics.disabled": ["unresolved-extern-crate", "unresolved-macro-call"],
|
|
"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.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",
|
|
"edition": "2018",
|
|
"deps": [],
|
|
"cfg": [],
|
|
},
|
|
{
|
|
"root_module": "./example/mini_core_hello_world.rs",
|
|
"edition": "2018",
|
|
"deps": [{ "crate": 0, "name": "mini_core" }],
|
|
"cfg": [],
|
|
},
|
|
{
|
|
"root_module": "./example/mod_bench.rs",
|
|
"edition": "2018",
|
|
"deps": [],
|
|
"cfg": [],
|
|
},
|
|
]
|
|
},
|
|
{
|
|
"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"],
|
|
"crates": [
|
|
{
|
|
"root_module": "./y.rs",
|
|
"edition": "2018",
|
|
"deps": [{ "crate": 1, "name": "std" }],
|
|
"cfg": [],
|
|
},
|
|
{
|
|
"root_module": "./build_sysroot/sysroot_src/library/std/src/lib.rs",
|
|
"edition": "2018",
|
|
"deps": [],
|
|
"cfg": [],
|
|
},
|
|
]
|
|
}
|
|
]
|
|
}
|