diff --git a/Cargo.lock b/Cargo.lock index a1faa17c9a..4a62717959 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2136,7 +2136,6 @@ dependencies = [ "app_dirs", "async-stream", "base64 0.11.0", - "battery", "bigdecimal", "bson", "byte-unit", @@ -2159,7 +2158,6 @@ dependencies = [ "getset", "git2", "glob", - "heim", "hex 0.4.0", "ichwh", "indexmap", diff --git a/Cargo.toml b/Cargo.toml index c5d35a65a9..fe9bf07b7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -129,8 +129,6 @@ futures-timer = { version = "1.0.2", optional = true } clipboard = {version = "0.5", optional = true } ptree = {version = "0.2" } 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 } onig_sys = {version = "=69.1.0", optional = true } crossterm = {version = "0.14.2", optional = true} @@ -149,8 +147,8 @@ stable = ["default", "starship-prompt", "binaryview", "match", "tree", "average" # Default textview = ["crossterm", "syntect", "onig_sys", "url", "nu_plugin_textview"] -sys = ["heim", "battery", "nu_plugin_sys"] -ps = ["heim", "futures-timer", "nu_plugin_ps"] +sys = ["nu_plugin_sys"] +ps = ["nu_plugin_ps"] inc = ["semver", "nu_plugin_inc"] str = ["nu_plugin_str"] diff --git a/crates/nu_plugin_ps/Cargo.toml b/crates/nu_plugin_ps/Cargo.toml index cae4c000d7..28b438834f 100644 --- a/crates/nu_plugin_ps/Cargo.toml +++ b/crates/nu_plugin_ps/Cargo.toml @@ -16,10 +16,15 @@ nu-source = { path = "../nu-source", 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"] } -heim = "0.0.9" futures-timer = "1.0.3" pin-utils = "0.1.0-alpha.4" futures-util = "0.3.1" +[dependencies.heim] +version = "0.0.9" +default-features = false + +features = ["process", "runtime-polyfill"] + [build-dependencies] nu-build = { version = "0.9.0", path = "../nu-build" } diff --git a/crates/nu_plugin_sys/Cargo.toml b/crates/nu_plugin_sys/Cargo.toml index 9db908583a..62b39095dd 100644 --- a/crates/nu_plugin_sys/Cargo.toml +++ b/crates/nu_plugin_sys/Cargo.toml @@ -12,10 +12,15 @@ nu-protocol = { path = "../nu-protocol", version = "0.9.0" } nu-source = { path = "../nu-source", 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"] } battery = "0.7.5" 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] nu-build = { version = "0.9.0", path = "../nu-build" }