From 84517138bcc09d3fbc6b9844960768be399f5b4e Mon Sep 17 00:00:00 2001 From: nibon7 Date: Thu, 8 Feb 2024 09:26:18 +0800 Subject: [PATCH] Bump miette from 5.10.0 to 7.0.0 (#11788) # Description Bump miette from 5.10.0 to 7.0.0 # User-Facing Changes # Tests + Formatting # After Submitting --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com> --- Cargo.lock | 59 +++++++++---------------- Cargo.toml | 2 +- crates/nu-cli/Cargo.toml | 2 +- crates/nu-cmd-base/Cargo.toml | 2 +- crates/nu-command/Cargo.toml | 2 +- crates/nu-lsp/Cargo.toml | 2 +- crates/nu-protocol/Cargo.toml | 2 +- crates/nu-protocol/src/span.rs | 2 +- crates/nu-protocol/tests/test_config.rs | 2 +- crates/nu-std/Cargo.toml | 3 +- 10 files changed, 30 insertions(+), 48 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2ec6e0ea4e..4834714fa3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -779,7 +779,7 @@ dependencies = [ "anstyle", "clap_lex", "strsim", - "terminal_size 0.3.0", + "terminal_size", ] [[package]] @@ -2086,9 +2086,9 @@ dependencies = [ [[package]] name = "is_ci" -version = "1.1.1" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "616cde7c720bb2bb5824a224687d8f77bfd38922027f01d825cd7453be5099fb" +checksum = "7655c9839580ee829dfacba1d1278c2b7883e50a277ff7541299489d6bdfdc45" [[package]] name = "is_debug" @@ -2551,18 +2551,16 @@ dependencies = [ [[package]] name = "miette" -version = "5.10.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59bb584eaeeab6bd0226ccf3509a69d7936d148cf3d036ad350abe35e8c6856e" +checksum = "98a72adfa0c7ae88ba0abcbd00047a476616c66b831d628b8ac7f1e9de0cfd67" dependencies = [ - "is-terminal", "miette-derive", - "once_cell", "owo-colors", "supports-color", "supports-hyperlinks", "supports-unicode", - "terminal_size 0.1.17", + "terminal_size", "textwrap", "thiserror", "unicode-width", @@ -2570,9 +2568,9 @@ dependencies = [ [[package]] name = "miette-derive" -version = "5.10.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49e7bc1560b95a3c4a25d03de42fe76ca718ab92d1a22a55b9b4cf67b3ae635c" +checksum = "279def6bf114a34b3cf887489eb440d4dfcf709ab3ce9955e4a6f957ce5cce77" dependencies = [ "proc-macro2", "quote", @@ -3043,7 +3041,7 @@ dependencies = [ "sha2", "sysinfo", "tabled", - "terminal_size 0.3.0", + "terminal_size", "titlecase", "toml 0.8.8", "trash", @@ -3091,7 +3089,7 @@ dependencies = [ "nu-utils", "ratatui", "strip-ansi-escapes", - "terminal_size 0.3.0", + "terminal_size", "unicode-width", ] @@ -3651,9 +3649,9 @@ dependencies = [ [[package]] name = "owo-colors" -version = "3.5.0" +version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f" +checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" [[package]] name = "papergrid" @@ -5536,31 +5534,24 @@ dependencies = [ [[package]] name = "supports-color" -version = "2.1.0" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6398cde53adc3c4557306a96ce67b302968513830a77a95b2b17305d9719a89" +checksum = "9829b314621dfc575df4e409e79f9d6a66a3bd707ab73f23cb4aa3a854ac854f" dependencies = [ - "is-terminal", "is_ci", ] [[package]] name = "supports-hyperlinks" -version = "2.1.0" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f84231692eb0d4d41e4cdd0cabfdd2e6cd9e255e65f80c9aa7c98dd502b4233d" -dependencies = [ - "is-terminal", -] +checksum = "2c0a1e5168041f5f3ff68ff7d95dcb9c8749df29f6e7e89ada40dd4c9de404ee" [[package]] name = "supports-unicode" -version = "2.1.0" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f850c19edd184a205e883199a261ed44471c81e39bd95b1357f5febbef00e77a" -dependencies = [ - "is-terminal", -] +checksum = "b7401a30af6cb5818bb64852270bb722533397edcfc7344954a38f420819ece2" [[package]] name = "sxd-document" @@ -5698,16 +5689,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "terminal_size" -version = "0.1.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "633c1a546cee861a1a6d0dc69ebeca693bf4296661ba7852b9d21d159e0506df" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "terminal_size" version = "0.3.0" @@ -5726,9 +5707,9 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "textwrap" -version = "0.15.2" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7b3e525a49ec206798b40326a44121291b530c963cfb01018f63e135bac543d" +checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" dependencies = [ "smawk", "unicode-linebreak", diff --git a/Cargo.toml b/Cargo.toml index fd6bfdc68e..6b61d7aaab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -83,7 +83,7 @@ reedline = { version = "0.29.0", features = ["bashisms", "sqlite"] } crossterm = "0.27" ctrlc = "3.4" log = "0.4" -miette = { version = "5.10", features = ["fancy-no-backtrace"] } +miette = { version = "7.0", features = ["fancy-no-backtrace"] } mimalloc = { version = "0.1.37", default-features = false, optional = true } serde_json = "1.0" simplelog = "0.12" diff --git a/crates/nu-cli/Cargo.toml b/crates/nu-cli/Cargo.toml index 64253abb71..b07ce265f9 100644 --- a/crates/nu-cli/Cargo.toml +++ b/crates/nu-cli/Cargo.toml @@ -33,7 +33,7 @@ fancy-regex = "0.12" fuzzy-matcher = "0.3" is_executable = "1.0" log = "0.4" -miette = { version = "5.10", features = ["fancy-no-backtrace"] } +miette = { version = "7.0", features = ["fancy-no-backtrace"] } once_cell = "1.18" percent-encoding = "2" pathdiff = "0.2" diff --git a/crates/nu-cmd-base/Cargo.toml b/crates/nu-cmd-base/Cargo.toml index a97af005e4..f70ab2f16e 100644 --- a/crates/nu-cmd-base/Cargo.toml +++ b/crates/nu-cmd-base/Cargo.toml @@ -18,7 +18,7 @@ nu-protocol = { path = "../nu-protocol", version = "0.90.2" } nu-utils = { path = "../nu-utils", version = "0.90.2" } indexmap = "2.1" -miette = "5.10.0" +miette = "7.0.0" [dev-dependencies] nu-test-support = { path = "../nu-test-support", version = "0.90.2" } diff --git a/crates/nu-command/Cargo.toml b/crates/nu-command/Cargo.toml index 39be27afe5..58f91e5484 100644 --- a/crates/nu-command/Cargo.toml +++ b/crates/nu-command/Cargo.toml @@ -53,7 +53,7 @@ itertools = "0.12" log = "0.4" lscolors = { version = "0.17", default-features = false, features = ["nu-ansi-term"] } md5 = { package = "md-5", version = "0.10" } -miette = { version = "5.10", features = ["fancy-no-backtrace"] } +miette = { version = "7.0", features = ["fancy-no-backtrace"] } mime = "0.3" mime_guess = "2.0" native-tls = "0.2" diff --git a/crates/nu-lsp/Cargo.toml b/crates/nu-lsp/Cargo.toml index 4f9ade28f9..8a57c29db8 100644 --- a/crates/nu-lsp/Cargo.toml +++ b/crates/nu-lsp/Cargo.toml @@ -17,7 +17,7 @@ reedline = { version = "0.29" } crossbeam-channel = "0.5.8" lsp-types = "0.95.0" lsp-server = "0.7.5" -miette = "5.10" +miette = "7.0" ropey = "1.6.1" serde = "1.0" serde_json = "1.0" diff --git a/crates/nu-protocol/Cargo.toml b/crates/nu-protocol/Cargo.toml index 91268643a0..42ef731f98 100644 --- a/crates/nu-protocol/Cargo.toml +++ b/crates/nu-protocol/Cargo.toml @@ -23,7 +23,7 @@ chrono-humanize = "0.2" fancy-regex = "0.12" indexmap = "2.1" lru = "0.12" -miette = { version = "5.10", features = ["fancy-no-backtrace"] } +miette = { version = "7.0", features = ["fancy-no-backtrace"] } num-format = "0.4" serde = { version = "1.0", default-features = false } serde_json = { version = "1.0", optional = true } diff --git a/crates/nu-protocol/src/span.rs b/crates/nu-protocol/src/span.rs index 432452bb17..2d49f88ab0 100644 --- a/crates/nu-protocol/src/span.rs +++ b/crates/nu-protocol/src/span.rs @@ -23,7 +23,7 @@ pub struct Span { impl From for SourceSpan { fn from(s: Span) -> Self { - Self::new(s.start.into(), (s.end - s.start).into()) + Self::new(s.start.into(), s.end - s.start) } } diff --git a/crates/nu-protocol/tests/test_config.rs b/crates/nu-protocol/tests/test_config.rs index 13c90379a3..bee944d0a2 100644 --- a/crates/nu-protocol/tests/test_config.rs +++ b/crates/nu-protocol/tests/test_config.rs @@ -67,7 +67,7 @@ fn fancy_default_errors() { assert_eq!( actual.err, - "Error: \u{1b}[31m×\u{1b}[0m oh no!\n ╭─[\u{1b}[36;1;4mline1\u{1b}[0m:1:1]\n \u{1b}[2m1\u{1b}[0m │ force_error \"My error\"\n · \u{1b}[35;1m ─────┬────\u{1b}[0m\n · \u{1b}[35;1m╰── \u{1b}[35;1mhere's the error\u{1b}[0m\u{1b}[0m\n ╰────\n\n\n" + "Error: \u{1b}[31m×\u{1b}[0m oh no!\n ╭─[\u{1b}[36;1;4mline1\u{1b}[0m:1:13]\n \u{1b}[2m1\u{1b}[0m │ force_error \"My error\"\n · \u{1b}[35;1m ─────┬────\u{1b}[0m\n · \u{1b}[35;1m╰── \u{1b}[35;1mhere's the error\u{1b}[0m\u{1b}[0m\n ╰────\n\n\n" ); } diff --git a/crates/nu-std/Cargo.toml b/crates/nu-std/Cargo.toml index 4055bca231..daa3a7f52c 100644 --- a/crates/nu-std/Cargo.toml +++ b/crates/nu-std/Cargo.toml @@ -8,7 +8,8 @@ name = "nu-std" version = "0.90.2" [dependencies] -miette = { version = "5.10", features = ["fancy-no-backtrace"] } +miette = { version = "7.0", features = ["fancy-no-backtrace"] } nu-parser = { version = "0.90.2", path = "../nu-parser" } nu-protocol = { version = "0.90.2", path = "../nu-protocol" } nu-engine = { version = "0.90.2", path = "../nu-engine" } +