added zed settings to eliminate rust-analyzer warnings due to unknown target

This commit is contained in:
2026-05-27 15:32:05 +03:00
parent 98bab13ce1
commit 718afe478e
2 changed files with 29 additions and 0 deletions
+1
View File
@@ -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"
+28
View File
@@ -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"
}
}
}
}
}