Move plugins to feature-gate (#2599)

Piotr Osiewicz created

This PR:
- Reduces our dependency count for a release build by 20%
- Reduces our release compile time by about 30s (out of ~5 minutes)

Change summary

crates/zed/Cargo.toml       | 2 +-
crates/zed/src/languages.rs | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)

Detailed changes

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" }

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;