From 4ddf24269aa8aeee321f51aea1c0faa2c8b5c175 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Tue, 8 Mar 2022 20:05:58 -0600 Subject: [PATCH] changed cargo.toml so plugins don't build with features=extra (#4788) * changed cargo.toml so plugins don't build with features=extra * remove comments --- Cargo.lock | 4 ---- Cargo.toml | 20 ++++---------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9b627426da..e9c8700f47 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2157,10 +2157,6 @@ dependencies = [ "nu-table", "nu-term-grid", "nu-test-support", - "nu_plugin_example", - "nu_plugin_gstat", - "nu_plugin_inc", - "nu_plugin_query", "pretty_assertions", "pretty_env_logger", "rayon", diff --git a/Cargo.toml b/Cargo.toml index f5f48de66a..aae0516219 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,6 @@ chrono = "0.4.19" crossterm = "0.23.0" crossterm_winapi = "0.9.0" ctrlc = "3.2.1" -# lazy_static = "1.4.0" log = "0.4" miette = "4.1.0" nu-ansi-term = "0.42.0" @@ -56,14 +55,6 @@ rayon = "1.5.1" reedline = { git = "https://github.com/nushell/reedline", branch = "main" } is_executable = "1.0.1" -# mimalloc = { version = "*", default-features = false } - -# Plugins -nu_plugin_example = { version = "0.59.1", path = "./crates/nu_plugin_example", optional = true } -nu_plugin_gstat = { version = "0.59.1", path = "./crates/nu_plugin_gstat", optional = true } -nu_plugin_inc = { version = "0.59.1", path = "./crates/nu_plugin_inc", optional = true } -nu_plugin_query = { version = "0.59.1", path = "./crates/nu_plugin_query", optional = true } - [dev-dependencies] nu-test-support = { path="./crates/nu-test-support" } tempfile = "3.2.0" @@ -79,21 +70,17 @@ embed-resource = "1" [features] plugin = ["nu-plugin", "nu-parser/plugin", "nu-command/plugin", "nu-protocol/plugin", "nu-engine/plugin"] -default = ["plugin", "inc", "example", "which"] +default = ["plugin", "which"] stable = ["default"] -extra = ["default", "dataframe", "gstat", "zip-support", "query", "trash-support"] -wasi = ["inc"] +extra = ["default", "dataframe", "zip-support", "trash-support"] +wasi = [] trash-support = ["nu-command/trash-support"] # Stable (Default) -inc = ["nu_plugin_inc"] -example = ["nu_plugin_example"] which = ["nu-command/which"] # Extra -gstat = ["nu_plugin_gstat"] zip-support = ["nu-command/zip"] -query = ["nu_plugin_query"] # Dataframe feature for nushell dataframe = ["nu-command/dataframe"] @@ -101,6 +88,7 @@ dataframe = ["nu-command/dataframe"] [profile.release] opt-level = "s" # Optimize for size strip = "debuginfo" +lto = "fat" # build with `cargo build --profile profiling` # to analyze performance with tooling like linux perf