From 3d02f7ce5ff30d56095b3937eadce0f124f261f6 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Mon, 12 Jun 2023 21:04:09 +0200 Subject: [PATCH] Move plugins to feature-gate (#2599) This PR: - Reduces our dependency count for a release build by 20% - Reduces our release compile time by about 30s (out of ~5 minutes) --- crates/zed/Cargo.toml | 2 +- crates/zed/src/languages.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.toml index b29b4e5025..8fba2a302c 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 3ae564d13b..a27bc781b9 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;