Make feature options available downstream to nu-cli subcrate. (#1450)

This commit is contained in:
Andrés N. Robalino 2020-03-04 15:31:12 -05:00 committed by GitHub
parent b2c5af457e
commit c4cfab5e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 6 deletions

4
Cargo.lock generated
View File

@ -2192,7 +2192,6 @@ name = "nu"
version = "0.10.1"
dependencies = [
"clap",
"clipboard",
"crossterm 0.16.0",
"ctrlc",
"dunce",
@ -2226,7 +2225,6 @@ dependencies = [
"pretty_env_logger 0.4.0",
"semver",
"serde 1.0.104",
"starship",
"syntect",
"toml 0.5.6",
"url",
@ -2258,6 +2256,7 @@ dependencies = [
"cfg-if",
"chrono",
"clap",
"clipboard",
"csv",
"ctrlc",
"derive-new",
@ -2312,6 +2311,7 @@ dependencies = [
"serde_urlencoded",
"serde_yaml",
"shellexpand",
"starship",
"strip-ansi-escapes",
"tempfile",
"term",

View File

@ -40,11 +40,9 @@ nu_plugin_textview = { version = "0.10.0", path = "./crates/nu_plugin_textview",
nu_plugin_tree = { version = "0.10.0", path = "./crates/nu_plugin_tree", optional=true }
nu-macros = { version = "0.10.0", path = "./crates/nu-macros" }
clipboard = { version = "0.5", optional = true }
crossterm = { version = "0.16.0", optional = true }
onig_sys = { version = "=69.1.0", optional = true }
semver = { version = "0.9.0", optional = true }
starship = { version = "0.35.1", optional = true }
syntect = { version = "3.2.0", optional = true }
url = { version = "2.1.1", optional = true }
@ -69,7 +67,7 @@ nu-build = { version = "0.10.0", path = "./crates/nu-build" }
test-bins = []
default = ["sys", "ps", "textview", "inc", "str"]
stable = ["default", "starship-prompt", "binaryview", "match", "tree", "average", "shuffle", "sum", "post", "fetch", "clipboard"]
stable = ["default", "starship-prompt", "binaryview", "match", "tree", "average", "shuffle", "sum", "post", "fetch", "clipboard-cli"]
# Default
textview = ["crossterm", "syntect", "onig_sys", "url", "nu_plugin_textview"]
@ -84,12 +82,14 @@ binaryview = ["nu_plugin_binaryview"]
fetch = ["nu_plugin_fetch"]
match = ["nu_plugin_match"]
post = ["nu_plugin_post"]
starship-prompt = ["starship"]
shuffle = ["nu_plugin_shuffle"]
sum = ["nu_plugin_sum"]
trace = ["nu-parser/trace"]
tree = ["nu_plugin_tree"]
clipboard-cli = ["nu-cli/clipboard-cli"]
starship-prompt = ["nu-cli/starship-prompt"]
[[bin]]
name = "fail"
path = "crates/nu-test-support/src/bins/fail.rs"

View File

@ -85,6 +85,9 @@ umask = "0.1"
unicode-xid = "0.2.0"
which = "3.1.0"
clipboard = { version = "0.5", optional = true }
starship = { version = "0.35.1", optional = true }
[target.'cfg(unix)'.dependencies]
users = "0.9"
@ -97,3 +100,8 @@ pretty_assertions = "0.6.1"
[build-dependencies]
nu-build = { version = "0.10.0", path = "../nu-build" }
[features]
stable = []
starship-prompt = ["starship"]
clipboard-cli = ["clipboard"]