added zed settings to eliminate rust-analyzer warnings due to unknown target
This commit is contained in:
@@ -5,6 +5,7 @@ build-std = ["core", "compiler_builtins"]
|
||||
|
||||
[build]
|
||||
target = "x86_64-rusty_os.json"
|
||||
rustflags = ["-Zunstable-options"]
|
||||
|
||||
[target.'cfg(target_os = "none")']
|
||||
runner = "bootimage runner"
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"lsp": {
|
||||
"rust-analyzer": {
|
||||
"initialization_options": {
|
||||
"cargo": {
|
||||
"target": "x86_64-unknown-none",
|
||||
"extraEnv": {
|
||||
"RUSTFLAGS": "-Zunstable-options"
|
||||
}
|
||||
},
|
||||
"check": {
|
||||
"overrideCommand": [
|
||||
"cargo",
|
||||
"build",
|
||||
"--message-format=json",
|
||||
"--target",
|
||||
"x86_64-rusty_os.json",
|
||||
"-Zjson-target-spec",
|
||||
"-Zunstable-options"
|
||||
]
|
||||
},
|
||||
"rustc": {
|
||||
"source": "discover"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user