about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChai T. Rex <ChaiTRex@users.noreply.github.com>2024-07-16 10:01:35 -0400
committerChai T. Rex <ChaiTRex@users.noreply.github.com>2024-07-16 11:14:04 -0400
commit580cdfa6a7a9513b9185b404e346cf7f0e1a6c85 (patch)
tree7275dd8dbfa7409cb4395414b4d70afacc3ad21a
parent5203b7e10d05e3e57ada5406d99950d44d847a79 (diff)
downloadrust-580cdfa6a7a9513b9185b404e346cf7f0e1a6c85.tar.gz
rust-580cdfa6a7a9513b9185b404e346cf7f0e1a6c85.zip
Added project-specific Zed IDE settings
Created `.zed/settings.json` with all the settings from
`.vscode/settings.json`.
-rw-r--r--.zed/settings.json68
1 files changed, 68 insertions, 0 deletions
diff --git a/.zed/settings.json b/.zed/settings.json
new file mode 100644
index 00000000000..e93bed36949
--- /dev/null
+++ b/.zed/settings.json
@@ -0,0 +1,68 @@
+{
+  "format_on_save": "on",
+  "lsp": {
+    "rust-analyzer": {
+      "initialization_options": {
+        "diagnostics": {
+          // in case rustc.source is disabled for performance reasons; disable the errors about this
+          "disabled": ["unresolved-extern-crate", "unresolved-macro-call"]
+        },
+        "rustc": {
+          "source": "discover"
+        },
+        "imports": {
+          "granularity": {
+            "enforce": true,
+            "group": "module"
+          },
+          "prefix": "crate"
+        },
+        "cargo": {
+          "features": ["unstable-features"]
+        },
+        "linkedProjects": [
+          "./Cargo.toml",
+          "./build_system/Cargo.toml",
+          {
+            "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": []
+              }
+            ]
+          },
+          {
+            "sysroot_src": "./build/stdlib/library",
+            "crates": [
+              {
+                "root_module": "./example/std_example.rs",
+                "edition": "2015",
+                "deps": [],
+                "cfg": []
+              }
+            ]
+          }
+        ]
+      }
+    }
+  }
+}