Opt-out unused heim features from sys/ps plugins. (#1335)

This commit is contained in:
Andrés N. Robalino 2020-02-04 01:51:14 -05:00 committed by GitHub
parent c6da56949c
commit 7a0bc6bc46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 8 deletions

2
Cargo.lock generated
View file

@ -2136,7 +2136,6 @@ dependencies = [
"app_dirs", "app_dirs",
"async-stream", "async-stream",
"base64 0.11.0", "base64 0.11.0",
"battery",
"bigdecimal", "bigdecimal",
"bson", "bson",
"byte-unit", "byte-unit",
@ -2159,7 +2158,6 @@ dependencies = [
"getset", "getset",
"git2", "git2",
"glob", "glob",
"heim",
"hex 0.4.0", "hex 0.4.0",
"ichwh", "ichwh",
"indexmap", "indexmap",

View file

@ -129,8 +129,6 @@ futures-timer = { version = "1.0.2", optional = true }
clipboard = {version = "0.5", optional = true } clipboard = {version = "0.5", optional = true }
ptree = {version = "0.2" } ptree = {version = "0.2" }
starship = { version = "0.33.1", optional = true} starship = { version = "0.33.1", optional = true}
heim = {version = "0.0.9", optional = true}
battery = {version = "0.7.5", optional = true}
syntect = {version = "3.2.0", optional = true } syntect = {version = "3.2.0", optional = true }
onig_sys = {version = "=69.1.0", optional = true } onig_sys = {version = "=69.1.0", optional = true }
crossterm = {version = "0.14.2", optional = true} crossterm = {version = "0.14.2", optional = true}
@ -149,8 +147,8 @@ stable = ["default", "starship-prompt", "binaryview", "match", "tree", "average"
# Default # Default
textview = ["crossterm", "syntect", "onig_sys", "url", "nu_plugin_textview"] textview = ["crossterm", "syntect", "onig_sys", "url", "nu_plugin_textview"]
sys = ["heim", "battery", "nu_plugin_sys"] sys = ["nu_plugin_sys"]
ps = ["heim", "futures-timer", "nu_plugin_ps"] ps = ["nu_plugin_ps"]
inc = ["semver", "nu_plugin_inc"] inc = ["semver", "nu_plugin_inc"]
str = ["nu_plugin_str"] str = ["nu_plugin_str"]

View file

@ -16,10 +16,15 @@ nu-source = { path = "../nu-source", version = "0.9.0" }
nu-errors = { path = "../nu-errors", version = "0.9.0" } nu-errors = { path = "../nu-errors", version = "0.9.0" }
futures-preview = { version = "=0.3.0-alpha.19", features = ["compat", "io-compat"] } futures-preview = { version = "=0.3.0-alpha.19", features = ["compat", "io-compat"] }
heim = "0.0.9"
futures-timer = "1.0.3" futures-timer = "1.0.3"
pin-utils = "0.1.0-alpha.4" pin-utils = "0.1.0-alpha.4"
futures-util = "0.3.1" futures-util = "0.3.1"
[dependencies.heim]
version = "0.0.9"
default-features = false
features = ["process", "runtime-polyfill"]
[build-dependencies] [build-dependencies]
nu-build = { version = "0.9.0", path = "../nu-build" } nu-build = { version = "0.9.0", path = "../nu-build" }

View file

@ -12,10 +12,15 @@ nu-protocol = { path = "../nu-protocol", version = "0.9.0" }
nu-source = { path = "../nu-source", version = "0.9.0" } nu-source = { path = "../nu-source", version = "0.9.0" }
nu-errors = { path = "../nu-errors", version = "0.9.0" } nu-errors = { path = "../nu-errors", version = "0.9.0" }
heim = "0.0.9"
futures-preview = { version = "=0.3.0-alpha.19", features = ["compat", "io-compat"] } futures-preview = { version = "=0.3.0-alpha.19", features = ["compat", "io-compat"] }
battery = "0.7.5" battery = "0.7.5"
futures-util = "0.3.1" futures-util = "0.3.1"
[dependencies.heim]
version = "0.0.9"
default-features = false
features = ["host", "cpu", "memory", "disk", "net", "sensors", "runtime-polyfill"]
[build-dependencies] [build-dependencies]
nu-build = { version = "0.9.0", path = "../nu-build" } nu-build = { version = "0.9.0", path = "../nu-build" }