Remove ptree dep from nu-command, remove associated feature. (#3741)

Nothing used the `ptree` feature or optional dependency within
`nu-command` except to include it within the `version` output. This
may be related to when `nu-cli` also had a `ptree` feature, but
I'm not sure.

That leaves the code within `nu_plugin_tree` as the sole remaining
user of `ptree`, which is already covered by the feature `tree`
and included in the `version` output.
This commit is contained in:
Bruce Mitchener
2021-07-06 22:33:24 +07:00
committed by GitHub
parent d1df9b9e38
commit 651d425046
5 changed files with 2 additions and 11 deletions

View File

@ -66,7 +66,6 @@ num-format = { version="0.4.0", features=["with-num-bigint"] }
num-traits = "0.2.14"
parking_lot = "0.11.1"
pin-utils = "0.1.0"
ptree = { version="0.3.1", optional=true }
query_interface = "0.3.5"
quick-xml = "0.22"
rand = "0.8"

View File

@ -191,11 +191,6 @@ fn features_enabled() -> Vec<String> {
names.push("ctrlc".to_string());
}
#[cfg(feature = "ptree")]
{
names.push("ptree".to_string());
}
// #[cfg(feature = "rich-benchmark")]
// {
// names.push("rich-benchmark".to_string());