From 68331058946265ddf8822e02731c0d4096367e69 Mon Sep 17 00:00:00 2001 From: Kovacs Gyuszi Date: Wed, 26 Aug 2026 13:51:34 +0200 Subject: [PATCH 1/2] Fix Rustls crypto provider startup panic Initialize the aws-lc-rs provider explicitly before any TLS clients are built, avoiding Rustls provider auto-selection failures when reqwest also enables ring. Fixes #1 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 71d9e5d..efd6e7d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -256,6 +256,10 @@ impl std::str::FromStr for OutputFormat { #[tokio::main] async fn main() { + rustls::crypto::aws_lc_rs::default_provider() + .install_default() + .expect("failed to install the aws-lc-rs Rustls crypto provider"); + let cli = Cli::parse(); match cli.command { From 88d4646dc59510e15d64070ff4867aa07488425f Mon Sep 17 00:00:00 2001 From: Kovacs Gyuszi Date: Wed, 26 Aug 2026 13:58:19 +0200 Subject: [PATCH 2/2] Fix colored table alignment Enable tabled's ANSI support so invisible color escape sequences do not affect column widths. --- Cargo.lock | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 99a65e0..94b4da8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -17,6 +17,25 @@ dependencies = [ "libc", ] +[[package]] +name = "ansi-str" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cf4578926a981ab0ca955dc023541d19de37112bc24c1a197bd806d3d86ad1d" +dependencies = [ + "ansitok", +] + +[[package]] +name = "ansitok" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "220044e6a1bb31ddee4e3db724d29767f352de47445a6cd75e1a173142136c83" +dependencies = [ + "nom", + "vte", +] + [[package]] name = "anstream" version = "1.0.0" @@ -67,6 +86,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "arrayvec" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b" + [[package]] name = "asn1-rs" version = "0.6.2" @@ -1100,6 +1125,8 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ad43c07024ef767f9160710b3a6773976194758c7919b17e63b863db0bdf7fb" dependencies = [ + "ansi-str", + "ansitok", "bytecount", "fnv", "unicode-width 0.1.14", @@ -1743,6 +1770,8 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c998b0c8b921495196a48aabaf1901ff28be0760136e31604f7967b0792050e" dependencies = [ + "ansi-str", + "ansitok", "papergrid", "tabled_derive", "unicode-width 0.1.14", @@ -2061,6 +2090,27 @@ version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" +[[package]] +name = "vte" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6cbce692ab4ca2f1f3047fcf732430249c0e971bfdd2b234cf2c47ad93af5983" +dependencies = [ + "arrayvec", + "utf8parse", + "vte_generate_state_changes", +] + +[[package]] +name = "vte_generate_state_changes" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e369bee1b05d510a7b4ed645f5faa90619e05437111783ea5848f28d97d3c2e" +dependencies = [ + "proc-macro2", + "quote", +] + [[package]] name = "want" version = "0.3.1" diff --git a/Cargo.toml b/Cargo.toml index 1400b54..a847f6d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ tokio = { version = "1", features = ["full"] } rustls = "0.23" tokio-rustls = "0.26" thiserror = "1" -tabled = "0.15" +tabled = { version = "0.15", features = ["ansi"] } webpki-roots = "0.26" rustls-pki-types = "1" colored = "2"