From 94fddffc709e910cd8e51bb0fc01a664e99d29ba Mon Sep 17 00:00:00 2001 From: Boshen Date: Sun, 5 Mar 2023 15:15:16 +0800 Subject: [PATCH] chore: use `fancy-no-backtrace` from miette See https://github.com/zkat/miette/issues/132 --- Cargo.lock | 46 ----------------------------------- crates/oxc_cli/Cargo.toml | 2 +- crates/oxc_linter/Cargo.toml | 2 +- crates/oxc_parser/Cargo.toml | 2 +- crates/oxc_printer/Cargo.toml | 2 +- tasks/coverage/Cargo.toml | 2 +- 6 files changed, 5 insertions(+), 51 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 56341be98..2ea4d1de9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,15 +2,6 @@ # It is not intended for manual editing. version = 3 -[[package]] -name = "addr2line" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" -dependencies = [ - "gimli", -] - [[package]] name = "adler" version = "1.0.2" @@ -60,21 +51,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" -[[package]] -name = "backtrace" -version = "0.3.67" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "233d376d6d185f2a3093e58f283f60f880315b6c60075b01f36b3b85154564ca" -dependencies = [ - "addr2line", - "cc", - "cfg-if", - "libc", - "miniz_oxide", - "object", - "rustc-demangle", -] - [[package]] name = "base64" version = "0.13.1" @@ -407,12 +383,6 @@ dependencies = [ "wasi", ] -[[package]] -name = "gimli" -version = "0.27.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0a93d233ebf96623465aad4046a8d3aa4da22d4f4beba5388838c8a434bbb4" - [[package]] name = "glob" version = "0.3.1" @@ -666,7 +636,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4afd9b301defa984bbdbe112b4763e093ed191750a0d914a78c1106b2d0fe703" dependencies = [ "atty", - "backtrace", "miette-derive", "once_cell", "owo-colors", @@ -748,15 +717,6 @@ dependencies = [ "libc", ] -[[package]] -name = "object" -version = "0.30.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439" -dependencies = [ - "memchr", -] - [[package]] name = "once_cell" version = "1.17.1" @@ -1026,12 +986,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "rustc-demangle" -version = "0.1.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" - [[package]] name = "rustc-hash" version = "1.1.0" diff --git a/crates/oxc_cli/Cargo.toml b/crates/oxc_cli/Cargo.toml index c8c6c72fc..15b918dd3 100644 --- a/crates/oxc_cli/Cargo.toml +++ b/crates/oxc_cli/Cargo.toml @@ -26,7 +26,7 @@ oxc_linter = { path = "../oxc_linter" } clap = { workspace = true } glob = { workspace = true } rayon = { workspace = true } -miette = { workspace = true, features = ["fancy"] } +miette = { workspace = true, features = ["fancy-no-backtrace"] } ignore = { version = "0.4.20", features = ["simd-accel"] } # git2 = { version = "0.16.1", default_features = false } diff --git a/crates/oxc_linter/Cargo.toml b/crates/oxc_linter/Cargo.toml index c1c68d176..8d2cca715 100644 --- a/crates/oxc_linter/Cargo.toml +++ b/crates/oxc_linter/Cargo.toml @@ -22,4 +22,4 @@ serde_json = { workspace = true } oxc_allocator = { path = "../oxc_allocator" } oxc_parser = { path = "../oxc_parser" } insta = { version = "1.14.0", features = ["glob"] } -miette = { workspace = true, features = ["fancy"] } +miette = { workspace = true, features = ["fancy-no-backtrace"] } diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index b938f0074..1d5ba1917 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -21,6 +21,6 @@ unicode-id-start = "1.0.3" num-bigint = "0.4.3" [dev-dependencies] -miette = { workspace = true, features = ["fancy"] } +miette = { workspace = true, features = ["fancy-no-backtrace"] } oxc_ast = { path = "../oxc_ast", features = ["serde_json"] } serde_json = { workspace = true } diff --git a/crates/oxc_printer/Cargo.toml b/crates/oxc_printer/Cargo.toml index 3de025b16..abd5bb7a1 100644 --- a/crates/oxc_printer/Cargo.toml +++ b/crates/oxc_printer/Cargo.toml @@ -15,4 +15,4 @@ oxc_ast = { path = "../oxc_ast" } [dev_dependencies] oxc_parser = { path = "../oxc_parser" } -miette = { workspace = true, features = ["fancy"] } +miette = { workspace = true, features = ["fancy-no-backtrace"] } diff --git a/tasks/coverage/Cargo.toml b/tasks/coverage/Cargo.toml index a115f5e29..cf9d37295 100644 --- a/tasks/coverage/Cargo.toml +++ b/tasks/coverage/Cargo.toml @@ -20,7 +20,7 @@ oxc_diagnostics = { path = "../../crates/oxc_diagnostics" } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } rayon = { workspace = true } -miette = { workspace = true, features = ["fancy"] } +miette = { workspace = true, features = ["fancy-no-backtrace"] } console = "0.15.5" encoding_rs = "0.8.32"