forked from extern/nushell
build: update miette
dependency (#5889)
This commit is contained in:
parent
c5a69271a2
commit
228ede18cf
18
Cargo.lock
generated
18
Cargo.lock
generated
@ -2203,13 +2203,13 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "miette"
|
name = "miette"
|
||||||
version = "4.7.1"
|
version = "5.1.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "1c90329e44f9208b55f45711f9558cec15d7ef8295cc65ecd6d4188ae8edc58c"
|
checksum = "6ec753a43fd71bb5f28751c9ec17fbe89d6d26ca8282d1e1f82f5ac3dbd5581e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atty",
|
"atty",
|
||||||
"backtrace",
|
"backtrace",
|
||||||
"miette-derive 4.7.1",
|
"miette-derive 5.1.0",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"owo-colors",
|
"owo-colors",
|
||||||
"supports-color",
|
"supports-color",
|
||||||
@ -2234,9 +2234,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "miette-derive"
|
name = "miette-derive"
|
||||||
version = "4.7.1"
|
version = "5.1.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "6b5bc45b761bcf1b5e6e6c4128cd93b84c218721a8d9b894aa0aff4ed180174c"
|
checksum = "fdfc33ea15c5446600f91d319299dd40301614afff7143cdfa9bf4c09da3ca64"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
"quote",
|
"quote",
|
||||||
@ -2484,7 +2484,7 @@ dependencies = [
|
|||||||
"is_executable",
|
"is_executable",
|
||||||
"itertools",
|
"itertools",
|
||||||
"log",
|
"log",
|
||||||
"miette 4.7.1",
|
"miette 5.1.0",
|
||||||
"nu-ansi-term",
|
"nu-ansi-term",
|
||||||
"nu-cli",
|
"nu-cli",
|
||||||
"nu-color-config",
|
"nu-color-config",
|
||||||
@ -2532,7 +2532,7 @@ dependencies = [
|
|||||||
"fuzzy-matcher",
|
"fuzzy-matcher",
|
||||||
"is_executable",
|
"is_executable",
|
||||||
"log",
|
"log",
|
||||||
"miette 4.7.1",
|
"miette 5.1.0",
|
||||||
"nu-ansi-term",
|
"nu-ansi-term",
|
||||||
"nu-color-config",
|
"nu-color-config",
|
||||||
"nu-command",
|
"nu-command",
|
||||||
@ -2688,7 +2688,7 @@ dependencies = [
|
|||||||
"chrono",
|
"chrono",
|
||||||
"itertools",
|
"itertools",
|
||||||
"log",
|
"log",
|
||||||
"miette 4.7.1",
|
"miette 5.1.0",
|
||||||
"nu-path",
|
"nu-path",
|
||||||
"nu-plugin",
|
"nu-plugin",
|
||||||
"nu-protocol",
|
"nu-protocol",
|
||||||
@ -2733,7 +2733,7 @@ dependencies = [
|
|||||||
"chrono",
|
"chrono",
|
||||||
"chrono-humanize",
|
"chrono-humanize",
|
||||||
"indexmap",
|
"indexmap",
|
||||||
"miette 4.7.1",
|
"miette 5.1.0",
|
||||||
"nu-json",
|
"nu-json",
|
||||||
"nu-utils",
|
"nu-utils",
|
||||||
"num-format",
|
"num-format",
|
||||||
|
@ -36,7 +36,7 @@ chrono = { version = "0.4.19", features = ["serde"] }
|
|||||||
crossterm = "0.23.0"
|
crossterm = "0.23.0"
|
||||||
ctrlc = "3.2.1"
|
ctrlc = "3.2.1"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
miette = "4.5.0"
|
miette = "5.1.0"
|
||||||
nu-ansi-term = "0.46.0"
|
nu-ansi-term = "0.46.0"
|
||||||
nu-cli = { path="./crates/nu-cli", version = "0.64.1" }
|
nu-cli = { path="./crates/nu-cli", version = "0.64.1" }
|
||||||
nu-color-config = { path = "./crates/nu-color-config", version = "0.64.1" }
|
nu-color-config = { path = "./crates/nu-color-config", version = "0.64.1" }
|
||||||
|
@ -20,7 +20,7 @@ nu-ansi-term = "0.46.0"
|
|||||||
nu-color-config = { path = "../nu-color-config", version = "0.64.1" }
|
nu-color-config = { path = "../nu-color-config", version = "0.64.1" }
|
||||||
reedline = { version = "0.7.0", features = ["bashisms", "sqlite"]}
|
reedline = { version = "0.7.0", features = ["bashisms", "sqlite"]}
|
||||||
crossterm = "0.23.0"
|
crossterm = "0.23.0"
|
||||||
miette = { version = "4.5.0", features = ["fancy"] }
|
miette = { version = "5.1.0", features = ["fancy"] }
|
||||||
thiserror = "1.0.29"
|
thiserror = "1.0.29"
|
||||||
fuzzy-matcher = "0.3.7"
|
fuzzy-matcher = "0.3.7"
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ version = "0.64.1"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
chrono = "0.4.19"
|
chrono = "0.4.19"
|
||||||
itertools = "0.10"
|
itertools = "0.10"
|
||||||
miette = "4.5.0"
|
miette = "5.1.0"
|
||||||
thiserror = "1.0.29"
|
thiserror = "1.0.29"
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
nu-path = {path = "../nu-path", version = "0.64.1" }
|
nu-path = {path = "../nu-path", version = "0.64.1" }
|
||||||
|
@ -11,7 +11,7 @@ version = "0.64.1"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
nu-utils = { path = "../nu-utils", version = "0.64.1" }
|
nu-utils = { path = "../nu-utils", version = "0.64.1" }
|
||||||
thiserror = "1.0.29"
|
thiserror = "1.0.29"
|
||||||
miette = { version = "4.5.0", features = ["fancy"] }
|
miette = { version = "5.1.0", features = ["fancy"] }
|
||||||
serde = {version = "1.0.130", features = ["derive"]}
|
serde = {version = "1.0.130", features = ["derive"]}
|
||||||
chrono = { version="0.4.19", features=["serde"] }
|
chrono = { version="0.4.19", features=["serde"] }
|
||||||
indexmap = { version="1.7", features=["serde-1"] }
|
indexmap = { version="1.7", features=["serde-1"] }
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use crate::engine::StateWorkingSet;
|
use crate::engine::StateWorkingSet;
|
||||||
use miette::{LabeledSpan, MietteHandlerOpts, ReportHandler, Severity, SourceCode};
|
use miette::{LabeledSpan, MietteHandlerOpts, ReportHandler, RgbColors, Severity, SourceCode};
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
/// This error exists so that we can defer SourceCode handling. It simply
|
/// This error exists so that we can defer SourceCode handling. It simply
|
||||||
@ -24,14 +24,15 @@ impl std::fmt::Debug for CliError<'_> {
|
|||||||
|
|
||||||
let miette_handler = MietteHandlerOpts::new()
|
let miette_handler = MietteHandlerOpts::new()
|
||||||
// For better support of terminal themes use the ANSI coloring
|
// For better support of terminal themes use the ANSI coloring
|
||||||
.rgb_colors(false)
|
.rgb_colors(RgbColors::Never)
|
||||||
.ansi_colors(true)
|
|
||||||
// If ansi support is disabled in the config disable the eye-candy
|
// If ansi support is disabled in the config disable the eye-candy
|
||||||
.color(ansi_support)
|
.color(ansi_support)
|
||||||
.unicode(ansi_support)
|
.unicode(ansi_support)
|
||||||
.terminal_links(ansi_support)
|
.terminal_links(ansi_support)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
miette_handler.debug(self, f)?;
|
miette_handler.debug(self, f)?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user