From 817eacccd82b0aea5438f75bbb978e933e7be6c8 Mon Sep 17 00:00:00 2001 From: Filip Andersson Date: Sat, 12 Nov 2022 06:44:56 +0100 Subject: [PATCH] removes unused features. (#6938) * removes unused features. * Adds back multithreading feature to sysinfo. * Adds back alloc for percent-encoding * Adds updated lock file. * Missed one sysinfo. * `indexmap` just defaults * Revert `miette``default-features=false` Co-authored-by: Stefan Holderbach Co-authored-by: JT <547158+jntrnr@users.noreply.github.com> --- Cargo.lock | 18 ------------------ crates/nu-cli/Cargo.toml | 2 +- crates/nu-command/Cargo.toml | 6 +++--- crates/nu-engine/Cargo.toml | 5 +++-- crates/nu-parser/Cargo.toml | 2 +- crates/nu-plugin/Cargo.toml | 2 +- crates/nu-protocol/Cargo.toml | 6 +++--- crates/nu_plugin_custom_values/Cargo.toml | 2 +- crates/nu_plugin_query/Cargo.toml | 2 +- 9 files changed, 14 insertions(+), 31 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 07cfb3896..b87b4ec24 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -905,8 +905,6 @@ checksum = "61579ada4ec0c6031cfac3f86fdba0d195a7ebeb5e36693bd53cb5999a25beeb" dependencies = [ "console", "lazy_static", - "tempfile", - "zeroize", ] [[package]] @@ -1407,15 +1405,6 @@ dependencies = [ "version_check", ] -[[package]] -name = "getopts" -version = "0.2.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14dbbfd5c71d70241ecf9e6f13737f7b5ce823821063188d7e46c41d371eebd5" -dependencies = [ - "unicode-width", -] - [[package]] name = "getrandom" version = "0.1.16" @@ -4335,7 +4324,6 @@ checksum = "5684396b456f3eb69ceeb34d1b5cb1a2f6acf7ca4452131efa3ba0ee2c2d0a70" dependencies = [ "cssparser", "ego-tree", - "getopts", "html5ever", "matches", "selectors", @@ -5810,12 +5798,6 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" -[[package]] -name = "zeroize" -version = "1.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c394b5bd0c6f669e7275d9c20aa90ae064cb22e75a1cad54e1b34088034b149f" - [[package]] name = "zip" version = "0.5.13" diff --git a/crates/nu-cli/Cargo.toml b/crates/nu-cli/Cargo.toml index 94ceb2114..808b42a43 100644 --- a/crates/nu-cli/Cargo.toml +++ b/crates/nu-cli/Cargo.toml @@ -23,7 +23,7 @@ nu-color-config = { path = "../nu-color-config", version = "0.71.1" } reedline = { version = "0.14.0", features = ["bashisms", "sqlite"]} atty = "0.2.14" -chrono = "0.4.21" +chrono = { default-features = false, features = ["std"], version = "0.4.21" } crossterm = "0.24.0" fancy-regex = "0.10.0" fuzzy-matcher = "0.3.7" diff --git a/crates/nu-command/Cargo.toml b/crates/nu-command/Cargo.toml index a9a9793a2..1d91b7c9d 100644 --- a/crates/nu-command/Cargo.toml +++ b/crates/nu-command/Cargo.toml @@ -32,13 +32,13 @@ base64 = "0.13.0" byteorder = "1.4.3" bytesize = "1.1.0" calamine = "0.18.0" -chrono = { version = "0.4.21", features = ["serde", "unstable-locales"] } +chrono = { version = "0.4.21", features = ["unstable-locales", "std"], default-features = false } chrono-humanize = "0.2.1" chrono-tz = "0.6.3" crossterm = "0.24.0" csv = "1.1.6" -dialoguer = "0.9.0" -digest = "0.10.0" +dialoguer = { default-features = false, version = "0.9.0" } +digest = { default-features = false, version = "0.10.0" } dtparse = "1.2.0" eml-parser = "0.1.0" encoding_rs = "0.8.30" diff --git a/crates/nu-engine/Cargo.toml b/crates/nu-engine/Cargo.toml index 31417d729..03863e441 100644 --- a/crates/nu-engine/Cargo.toml +++ b/crates/nu-engine/Cargo.toml @@ -13,8 +13,9 @@ nu-path = { path = "../nu-path", version = "0.71.1" } nu-glob = { path = "../nu-glob", version = "0.71.1" } nu-utils = { path = "../nu-utils", version = "0.71.1" } -chrono = { version="0.4.21", features=["serde"] } -sysinfo = "0.26.2" +chrono = { version="0.4.21", features = ["std"], default-features = false } +sysinfo ="0.26.2" +strip-ansi-escapes = "0.1.1" [features] plugin = [] diff --git a/crates/nu-parser/Cargo.toml b/crates/nu-parser/Cargo.toml index 339e9bc65..3c8d047c3 100644 --- a/crates/nu-parser/Cargo.toml +++ b/crates/nu-parser/Cargo.toml @@ -9,7 +9,7 @@ version = "0.71.1" [dependencies] bytesize = "1.1.0" -chrono = "0.4.21" +chrono = { default-features = false, features = ['std'], version = "0.4.21" } itertools = "0.10" miette = {version = "5.1.0", features = ["fancy-no-backtrace"]} thiserror = "1.0.31" diff --git a/crates/nu-plugin/Cargo.toml b/crates/nu-plugin/Cargo.toml index 3532e48da..fa50c8154 100644 --- a/crates/nu-plugin/Cargo.toml +++ b/crates/nu-plugin/Cargo.toml @@ -11,7 +11,7 @@ version = "0.71.1" bincode = "1.3.3" nu-protocol = { path = "../nu-protocol", version = "0.71.1" } nu-engine = { path = "../nu-engine", version = "0.71.1" } -serde = {version = "1.0.143", features = ["derive"]} +serde = { version = "1.0.143" } serde_json = { version = "1.0"} rmp = "0.8.11" rmp-serde = "1.1.0" diff --git a/crates/nu-protocol/Cargo.toml b/crates/nu-protocol/Cargo.toml index 59a12f5ec..3c3dc1ba9 100644 --- a/crates/nu-protocol/Cargo.toml +++ b/crates/nu-protocol/Cargo.toml @@ -14,13 +14,13 @@ nu-utils = { path = "../nu-utils", version = "0.71.1" } nu-json = { path = "../nu-json", version = "0.71.1" } byte-unit = "4.0.9" -chrono = { version="0.4.21", features=["serde"] } +chrono = { version="0.4.21", features= ["serde", "std"], default-features = false } chrono-humanize = "0.2.1" fancy-regex = "0.10.0" -indexmap = { version="1.7", features=["serde-1"] } +indexmap = { version="1.7" } miette = { version = "5.1.0", features = ["fancy-no-backtrace"] } num-format = "0.4.3" -serde = {version = "1.0.130", features = ["derive"]} +serde = {version = "1.0.143", default-features = false } serde_json = { version = "1.0", optional = true } strum = "0.24" strum_macros = "0.24" diff --git a/crates/nu_plugin_custom_values/Cargo.toml b/crates/nu_plugin_custom_values/Cargo.toml index a42c14051..61a5f404b 100644 --- a/crates/nu_plugin_custom_values/Cargo.toml +++ b/crates/nu_plugin_custom_values/Cargo.toml @@ -9,5 +9,5 @@ edition = "2021" [dependencies] nu-plugin = { path = "../nu-plugin", version = "0.71.1" } nu-protocol = { path = "../nu-protocol", version = "0.71.1", features = ["plugin"] } -serde = { version = "1.0", features = ["derive"] } +serde = { version = "1.0", default-features = false } typetag = "0.1.8" diff --git a/crates/nu_plugin_query/Cargo.toml b/crates/nu_plugin_query/Cargo.toml index 09d569f97..726fba0dc 100644 --- a/crates/nu_plugin_query/Cargo.toml +++ b/crates/nu_plugin_query/Cargo.toml @@ -15,6 +15,6 @@ nu-plugin = { path="../nu-plugin", version = "0.71.1" } nu-protocol = { path="../nu-protocol", version = "0.71.1" } nu-engine = { path="../nu-engine", version = "0.71.1" } gjson = "0.8.0" -scraper = "0.13.0" +scraper = { default-features = false, version = "0.13.0" } sxd-document = "0.3.2" sxd-xpath = "0.4.2"