Reduce required dependencies for diagnostics (#6648)

Disable backtrace on miette
- gimli crate requires several seconds
Disable diagnostics on wax
- depends on an outdated miette version

Builds fine, no observable loss in diagnostics quality of life

Removes 10 crates that have to be compiled.
This commit is contained in:
Stefan Holderbach 2022-10-24 21:42:32 +02:00 committed by GitHub
parent 6a7a60429f
commit 92ab8b831b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 87 deletions

87
Cargo.lock generated
View File

@ -12,15 +12,6 @@ dependencies = [
"regex", "regex",
] ]
[[package]]
name = "addr2line"
version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b"
dependencies = [
"gimli",
]
[[package]] [[package]]
name = "adler" name = "adler"
version = "1.0.2" version = "1.0.2"
@ -241,21 +232,6 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
[[package]]
name = "backtrace"
version = "0.3.66"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7"
dependencies = [
"addr2line",
"cc",
"cfg-if 1.0.0",
"libc",
"miniz_oxide",
"object",
"rustc-demangle",
]
[[package]] [[package]]
name = "bare-metal" name = "bare-metal"
version = "0.2.5" version = "0.2.5"
@ -1485,12 +1461,6 @@ dependencies = [
"syn", "syn",
] ]
[[package]]
name = "gimli"
version = "0.26.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d"
[[package]] [[package]]
name = "git2" name = "git2"
version = "0.15.0" version = "0.15.0"
@ -2262,18 +2232,6 @@ dependencies = [
"nom 1.2.4", "nom 1.2.4",
] ]
[[package]]
name = "miette"
version = "4.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1c90329e44f9208b55f45711f9558cec15d7ef8295cc65ecd6d4188ae8edc58c"
dependencies = [
"miette-derive 4.7.1",
"once_cell",
"thiserror",
"unicode-width",
]
[[package]] [[package]]
name = "miette" name = "miette"
version = "5.3.0" version = "5.3.0"
@ -2281,8 +2239,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a28d6092d7e94a90bb9ea8e6c26c99d5d112d49dda2afdb4f7ea8cf09e1a5a6d" checksum = "a28d6092d7e94a90bb9ea8e6c26c99d5d112d49dda2afdb4f7ea8cf09e1a5a6d"
dependencies = [ dependencies = [
"atty", "atty",
"backtrace", "miette-derive",
"miette-derive 5.3.0",
"once_cell", "once_cell",
"owo-colors", "owo-colors",
"supports-color", "supports-color",
@ -2294,17 +2251,6 @@ dependencies = [
"unicode-width", "unicode-width",
] ]
[[package]]
name = "miette-derive"
version = "4.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6b5bc45b761bcf1b5e6e6c4128cd93b84c218721a8d9b894aa0aff4ed180174c"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]] [[package]]
name = "miette-derive" name = "miette-derive"
version = "5.3.0" version = "5.3.0"
@ -2570,7 +2516,7 @@ dependencies = [
"is_executable", "is_executable",
"itertools", "itertools",
"log", "log",
"miette 5.3.0", "miette",
"nix 0.24.2", "nix 0.24.2",
"nu-ansi-term", "nu-ansi-term",
"nu-cli", "nu-cli",
@ -2623,7 +2569,7 @@ dependencies = [
"is_executable", "is_executable",
"lazy_static", "lazy_static",
"log", "log",
"miette 5.3.0", "miette",
"nu-ansi-term", "nu-ansi-term",
"nu-color-config", "nu-color-config",
"nu-command", "nu-command",
@ -2790,7 +2736,7 @@ dependencies = [
"chrono", "chrono",
"itertools", "itertools",
"log", "log",
"miette 5.3.0", "miette",
"nu-engine", "nu-engine",
"nu-path", "nu-path",
"nu-plugin", "nu-plugin",
@ -2842,7 +2788,7 @@ dependencies = [
"chrono-humanize", "chrono-humanize",
"fancy-regex", "fancy-regex",
"indexmap", "indexmap",
"miette 5.3.0", "miette",
"nu-json", "nu-json",
"nu-path", "nu-path",
"nu-utils", "nu-utils",
@ -3131,15 +3077,6 @@ dependencies = [
"malloc_buf", "malloc_buf",
] ]
[[package]]
name = "object"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53"
dependencies = [
"memchr",
]
[[package]] [[package]]
name = "omnipath" name = "omnipath"
version = "0.1.1" version = "0.1.1"
@ -4309,12 +4246,6 @@ dependencies = [
"num-traits", "num-traits",
] ]
[[package]]
name = "rustc-demangle"
version = "0.1.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342"
[[package]] [[package]]
name = "rustc-hash" name = "rustc-hash"
version = "1.1.0" version = "1.1.0"
@ -5452,12 +5383,6 @@ version = "0.2.15"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
[[package]]
name = "vec1"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fc1631c774f0f9570797191e01247cbefde789eebfbf128074cb934115a6133"
[[package]] [[package]]
name = "version_check" name = "version_check"
version = "0.9.4" version = "0.9.4"
@ -5623,14 +5548,12 @@ dependencies = [
"bstr", "bstr",
"const_format", "const_format",
"itertools", "itertools",
"miette 4.7.1",
"nom 7.1.1", "nom 7.1.1",
"nom-supreme", "nom-supreme",
"pori", "pori",
"regex", "regex",
"smallvec", "smallvec",
"thiserror", "thiserror",
"vec1",
"walkdir", "walkdir",
] ]

View File

@ -36,7 +36,7 @@ chrono = { version = "0.4.21", features = ["serde"] }
crossterm = "0.24.0" crossterm = "0.24.0"
ctrlc = "3.2.1" ctrlc = "3.2.1"
log = "0.4" log = "0.4"
miette = "5.1.0" miette = { version = "5.1.0", features = ["fancy-no-backtrace"] }
nu-ansi-term = "0.46.0" nu-ansi-term = "0.46.0"
nu-cli = { path="./crates/nu-cli", version = "0.70.1" } nu-cli = { path="./crates/nu-cli", version = "0.70.1" }
nu-color-config = { path = "./crates/nu-color-config", version = "0.70.1" } nu-color-config = { path = "./crates/nu-color-config", version = "0.70.1" }

View File

@ -30,7 +30,7 @@ fuzzy-matcher = "0.3.7"
is_executable = "1.0.1" is_executable = "1.0.1"
lazy_static = "1.4.0" lazy_static = "1.4.0"
log = "0.4" log = "0.4"
miette = { version = "5.1.0", features = ["fancy"] } miette = { version = "5.1.0", features = ["fancy-no-backtrace"] }
percent-encoding = "2" percent-encoding = "2"
strip-ansi-escapes = "0.1.1" strip-ansi-escapes = "0.1.1"
sysinfo = "0.26.2" sysinfo = "0.26.2"

View File

@ -89,7 +89,7 @@ url = "2.2.1"
uuid = { version = "1.1.2", features = ["v4"] } uuid = { version = "1.1.2", features = ["v4"] }
which = { version = "4.3.0", optional = true } which = { version = "4.3.0", optional = true }
reedline = { version = "0.13.0", features = ["bashisms", "sqlite"]} reedline = { version = "0.13.0", features = ["bashisms", "sqlite"]}
wax = { version = "0.5.0", features = ["diagnostics"] } wax = { version = "0.5.0" }
rusqlite = { version = "0.28.0", features = ["bundled"], optional = true } rusqlite = { version = "0.28.0", features = ["bundled"], optional = true }
sqlparser = { version = "0.23.0", features = ["serde"], optional = true } sqlparser = { version = "0.23.0", features = ["serde"], optional = true }

View File

@ -11,7 +11,7 @@ version = "0.70.1"
bytesize = "1.1.0" bytesize = "1.1.0"
chrono = "0.4.21" chrono = "0.4.21"
itertools = "0.10" itertools = "0.10"
miette = "5.1.0" miette = {version = "5.1.0", features = ["fancy-no-backtrace"]}
thiserror = "1.0.31" thiserror = "1.0.31"
serde_json = "1.0" serde_json = "1.0"
nu-path = {path = "../nu-path", version = "0.70.1" } nu-path = {path = "../nu-path", version = "0.70.1" }

View File

@ -19,7 +19,7 @@ chrono = { version="0.4.21", features=["serde"] }
chrono-humanize = "0.2.1" chrono-humanize = "0.2.1"
fancy-regex = "0.10.0" fancy-regex = "0.10.0"
indexmap = { version="1.7", features=["serde-1"] } indexmap = { version="1.7", features=["serde-1"] }
miette = { version = "5.1.0", features = ["fancy"] } miette = { version = "5.1.0", features = ["fancy-no-backtrace"] }
num-format = "0.4.3" num-format = "0.4.3"
serde = {version = "1.0.130", features = ["derive"]} serde = {version = "1.0.130", features = ["derive"]}
serde_json = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true }