diff --git a/Cargo.lock b/Cargo.lock index c1ae13c..b62db55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -436,6 +436,12 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e245704f60eb4eb45810d65cf14eb54d2eb50a6f3715fe2d7cd01ee905c2944f" +[[package]] +name = "bytecount" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c676a478f63e9fa2dd5368a42f28bba0d6c560b775f38583c8bbaa7fcd67c9c" + [[package]] name = "bytes" version = "1.1.0" @@ -2158,10 +2164,12 @@ dependencies = [ [[package]] name = "papergrid" -version = "0.4.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "608b6444acf7f5ea39e8bd06dd6037e34a4b5ddfb29ae840edad49ea798e9e79" +checksum = "453cf71f2a37af495a1a124bf30d4d7469cfbea58e9f2479be9d222396a518a2" dependencies = [ + "bytecount", + "fnv", "unicode-width", ] @@ -3103,20 +3111,23 @@ dependencies = [ [[package]] name = "tabled" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2407502760ccfd538f2fb1f843dd87b6daf1a17848d57bc5a25617e408ef4c7a" +checksum = "e5b2f8c37d26d87d2252187b0a45ea3cbf42baca10377c7e7eaaa2800fa9bf97" dependencies = [ "papergrid", "tabled_derive", + "unicode-width", ] [[package]] name = "tabled_derive" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "278ea3921cee8c5a69e0542998a089f7a14fa43c9c4e4f9951295da89bd0c943" +checksum = "f9ee618502f497abf593e1c5c9577f34775b111480009ffccd7ad70d23fcaba8" dependencies = [ + "heck 0.4.0", + "proc-macro-error", "proc-macro2", "quote", "syn", diff --git a/lychee-bin/Cargo.toml b/lychee-bin/Cargo.toml index e95f967..2d4df55 100644 --- a/lychee-bin/Cargo.toml +++ b/lychee-bin/Cargo.toml @@ -36,7 +36,7 @@ ring = "0.16.20" serde = { version = "1.0.141", features = ["derive"] } serde_json = "1.0.82" structopt = "0.3.26" -tabled = "0.7.0" +tabled = "0.8.0" tokio = { version = "1.20.1", features = ["full"] } toml = "0.5.9" futures = "0.3.21" diff --git a/lychee-bin/src/formatters/stats/markdown.rs b/lychee-bin/src/formatters/stats/markdown.rs index 04e3513..38cc804 100644 --- a/lychee-bin/src/formatters/stats/markdown.rs +++ b/lychee-bin/src/formatters/stats/markdown.rs @@ -45,7 +45,7 @@ fn stats_table(stats: &ResponseStats) -> String { count: stats.errors + stats.failures, }, ]; - let style = tabled::Style::github_markdown().header_intersection('|'); + let style = tabled::Style::markdown(); Table::new(stats) .with(Modify::new(Segment::all()).with(Alignment::left())) @@ -121,8 +121,7 @@ mod tests { | 🔀 Redirected | 0 | | 👻 Excluded | 0 | | ❓ Unknown | 0 | -| 🚫 Errors | 0 | -"#; +| 🚫 Errors | 0 |"#; assert_eq!(table, expected.to_string()); } @@ -150,7 +149,6 @@ mod tests { | ❓ Unknown | 0 | | 🚫 Errors | 1 | - ## Errors per input ### Errors in stdin * [http://127.0.0.1/](http://127.0.0.1/): Cached: Error (cached) (status code: 404)