mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 03:37:26 +03:00
3fe3edbcde
This reduces the amount of time it takes to do the x check for rust-analyzer analysis from 12m16s to 3m34s when the bootstrap compiler is already downloaded.
55 lines
1.4 KiB
JSON
55 lines
1.4 KiB
JSON
{
|
|
"lsp": {
|
|
"rust-analyzer": {
|
|
"initialization_options": {
|
|
"cargo": {
|
|
"buildScripts": {
|
|
"enable": true,
|
|
"invocationLocation": "root",
|
|
"invocationStrategy": "once",
|
|
"overrideCommand": ["python3", "x.py", "check", "--json-output", "--compile-time-deps"]
|
|
},
|
|
"extraEnv": {
|
|
"RUSTC_BOOTSTRAP": "1"
|
|
},
|
|
"sysrootSrc": "./library"
|
|
},
|
|
"check": {
|
|
"invocationLocation": "root",
|
|
"invocationStrategy": "once",
|
|
"overrideCommand": ["python3", "x.py", "check", "--json-output"]
|
|
},
|
|
"linkedProjects": [
|
|
"Cargo.toml",
|
|
"compiler/rustc_codegen_cranelift/Cargo.toml",
|
|
"compiler/rustc_codegen_gcc/Cargo.toml",
|
|
"library/Cargo.toml",
|
|
"src/bootstrap/Cargo.toml",
|
|
"src/tools/rust-analyzer/Cargo.toml"
|
|
],
|
|
"procMacro": {
|
|
"enable": true,
|
|
"server": "build/host/stage0/libexec/rust-analyzer-proc-macro-srv"
|
|
},
|
|
"rustc": {
|
|
"source": "./Cargo.toml"
|
|
},
|
|
"rustfmt": {
|
|
"overrideCommand": [
|
|
"build/host/rustfmt/bin/rustfmt",
|
|
"--edition=2024"
|
|
]
|
|
},
|
|
"server": {
|
|
"extraEnv": {
|
|
"RUSTUP_TOOLCHAIN": "nightly"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"file_types": {
|
|
"Rust": ["fixed", "pp", "mir"]
|
|
}
|
|
}
|