Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Move plugins to feature-gate (#2599)

Piotr Osiewicz3d02f7ce5ff3
diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.toml
index b29b4e5025b..8fba2a302cd 100644
--- a/crates/zed/Cargo.toml
+++ b/crates/zed/Cargo.toml
@@ -49,7 +49,7 @@ lsp_log = { path = "../lsp_log" }
node_runtime = { path = "../node_runtime" }
ai = { path = "../ai" }
outline = { path = "../outline" }
-plugin_runtime = { path = "../plugin_runtime" }
+plugin_runtime = { path = "../plugin_runtime",optional = true }
project = { path = "../project" }
project_panel = { path = "../project_panel" }
project_symbols = { path = "../project_symbols" }
diff --git a/crates/zed/src/languages.rs b/crates/zed/src/languages.rs
index 3ae564d13b5..a27bc781b91 100644
--- a/crates/zed/src/languages.rs
+++ b/crates/zed/src/languages.rs
@@ -10,6 +10,7 @@ mod elixir;
mod go;
mod html;
mod json;
+#[cfg(feature = "plugin_runtime")]
mod language_plugin;
mod lua;
mod python;