Skip to content

Commit

Permalink
changed cargo.toml so plugins don't build with features=extra (#4788)
Browse files Browse the repository at this point in the history
* changed cargo.toml so plugins don't build with features=extra

* remove comments
  • Loading branch information
fdncred committed Mar 9, 2022
1 parent b73af3b commit 4ddf242
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
4 changes: 0 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 4 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -79,28 +70,25 @@ 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"]

[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
Expand Down

0 comments on commit 4ddf242

Please sign in to comment.