bump tabled

This commit is contained in:
klensy 2024-02-22 14:17:59 +03:00
parent 0b44330c38
commit 15bc68118f
3 changed files with 8 additions and 8 deletions

View File

@ -2787,9 +2787,9 @@ dependencies = [
[[package]]
name = "papergrid"
version = "0.10.0"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2ccbe15f2b6db62f9a9871642746427e297b0ceb85f9a7f1ee5ff47d184d0c8"
checksum = "9ad43c07024ef767f9160710b3a6773976194758c7919b17e63b863db0bdf7fb"
dependencies = [
"bytecount",
"fnv",
@ -5314,9 +5314,9 @@ dependencies = [
[[package]]
name = "tabled"
version = "0.13.0"
version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d38d39c754ae037a9bc3ca1580a985db7371cd14f1229172d1db9093feb6739"
checksum = "4c998b0c8b921495196a48aabaf1901ff28be0760136e31604f7967b0792050e"
dependencies = [
"papergrid",
"unicode-width",

View File

@ -23,4 +23,4 @@ glob = "0.3"
tempfile = "3.5"
derive_builder = "0.20"
clap = { version = "4", features = ["derive"] }
tabled = { version = "0.13", default-features = false, features = ["std"] }
tabled = { version = "0.15", default-features = false, features = ["std"] }

View File

@ -2,7 +2,7 @@ use std::io::Write;
use tabled::builder::Builder;
use tabled::settings::object::Columns;
use tabled::settings::style::{BorderChar, Offset};
use tabled::settings::style::{LineChar, Offset};
use tabled::settings::{Modify, Style};
use crate::environment::Environment;
@ -40,11 +40,11 @@ pub fn print_binary_sizes(env: &Environment) -> anyhow::Result<()> {
// Write to GitHub summary
if let Ok(summary_path) = std::env::var("GITHUB_STEP_SUMMARY") {
let mut builder = Builder::default();
builder.push_record(vec!["Artifact", "Size"]);
for (name, size_formatted) in items {
builder.push_record(vec![name, size_formatted]);
}
builder.set_header(vec!["Artifact", "Size"]);
let mut table = builder.build();
let mut file = std::fs::File::options().append(true).create(true).open(summary_path)?;
@ -52,7 +52,7 @@ pub fn print_binary_sizes(env: &Environment) -> anyhow::Result<()> {
file,
"# Artifact size\n{}\n",
table.with(Style::markdown()).with(
Modify::new(Columns::single(1)).with(BorderChar::horizontal(':', Offset::End(0))),
Modify::new(Columns::single(1)).with(LineChar::horizontal(':', Offset::End(0))),
)
)?;
}