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
This commit is contained in:
Darren Schroeder 2022-03-08 20:05:58 -06:00 committed by GitHub
parent b73af3b8df
commit 4ddf24269a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 20 deletions

4
Cargo.lock generated
View file

@ -2157,10 +2157,6 @@ dependencies = [
"nu-table", "nu-table",
"nu-term-grid", "nu-term-grid",
"nu-test-support", "nu-test-support",
"nu_plugin_example",
"nu_plugin_gstat",
"nu_plugin_inc",
"nu_plugin_query",
"pretty_assertions", "pretty_assertions",
"pretty_env_logger", "pretty_env_logger",
"rayon", "rayon",

View file

@ -34,7 +34,6 @@ chrono = "0.4.19"
crossterm = "0.23.0" crossterm = "0.23.0"
crossterm_winapi = "0.9.0" crossterm_winapi = "0.9.0"
ctrlc = "3.2.1" ctrlc = "3.2.1"
# lazy_static = "1.4.0"
log = "0.4" log = "0.4"
miette = "4.1.0" miette = "4.1.0"
nu-ansi-term = "0.42.0" nu-ansi-term = "0.42.0"
@ -56,14 +55,6 @@ rayon = "1.5.1"
reedline = { git = "https://github.com/nushell/reedline", branch = "main" } reedline = { git = "https://github.com/nushell/reedline", branch = "main" }
is_executable = "1.0.1" 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] [dev-dependencies]
nu-test-support = { path="./crates/nu-test-support" } nu-test-support = { path="./crates/nu-test-support" }
tempfile = "3.2.0" tempfile = "3.2.0"
@ -79,21 +70,17 @@ embed-resource = "1"
[features] [features]
plugin = ["nu-plugin", "nu-parser/plugin", "nu-command/plugin", "nu-protocol/plugin", "nu-engine/plugin"] 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"] stable = ["default"]
extra = ["default", "dataframe", "gstat", "zip-support", "query", "trash-support"] extra = ["default", "dataframe", "zip-support", "trash-support"]
wasi = ["inc"] wasi = []
trash-support = ["nu-command/trash-support"] trash-support = ["nu-command/trash-support"]
# Stable (Default) # Stable (Default)
inc = ["nu_plugin_inc"]
example = ["nu_plugin_example"]
which = ["nu-command/which"] which = ["nu-command/which"]
# Extra # Extra
gstat = ["nu_plugin_gstat"]
zip-support = ["nu-command/zip"] zip-support = ["nu-command/zip"]
query = ["nu_plugin_query"]
# Dataframe feature for nushell # Dataframe feature for nushell
dataframe = ["nu-command/dataframe"] dataframe = ["nu-command/dataframe"]
@ -101,6 +88,7 @@ dataframe = ["nu-command/dataframe"]
[profile.release] [profile.release]
opt-level = "s" # Optimize for size opt-level = "s" # Optimize for size
strip = "debuginfo" strip = "debuginfo"
lto = "fat"
# build with `cargo build --profile profiling` # build with `cargo build --profile profiling`
# to analyze performance with tooling like linux perf # to analyze performance with tooling like linux perf