bump tabled
This commit is contained in:
parent
0b44330c38
commit
15bc68118f
3 changed files with 8 additions and 8 deletions
|
@ -2787,9 +2787,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "papergrid"
|
name = "papergrid"
|
||||||
version = "0.10.0"
|
version = "0.11.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a2ccbe15f2b6db62f9a9871642746427e297b0ceb85f9a7f1ee5ff47d184d0c8"
|
checksum = "9ad43c07024ef767f9160710b3a6773976194758c7919b17e63b863db0bdf7fb"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytecount",
|
"bytecount",
|
||||||
"fnv",
|
"fnv",
|
||||||
|
@ -5314,9 +5314,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tabled"
|
name = "tabled"
|
||||||
version = "0.13.0"
|
version = "0.15.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4d38d39c754ae037a9bc3ca1580a985db7371cd14f1229172d1db9093feb6739"
|
checksum = "4c998b0c8b921495196a48aabaf1901ff28be0760136e31604f7967b0792050e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"papergrid",
|
"papergrid",
|
||||||
"unicode-width",
|
"unicode-width",
|
||||||
|
|
|
@ -23,4 +23,4 @@ glob = "0.3"
|
||||||
tempfile = "3.5"
|
tempfile = "3.5"
|
||||||
derive_builder = "0.20"
|
derive_builder = "0.20"
|
||||||
clap = { version = "4", features = ["derive"] }
|
clap = { version = "4", features = ["derive"] }
|
||||||
tabled = { version = "0.13", default-features = false, features = ["std"] }
|
tabled = { version = "0.15", default-features = false, features = ["std"] }
|
||||||
|
|
|
@ -2,7 +2,7 @@ use std::io::Write;
|
||||||
|
|
||||||
use tabled::builder::Builder;
|
use tabled::builder::Builder;
|
||||||
use tabled::settings::object::Columns;
|
use tabled::settings::object::Columns;
|
||||||
use tabled::settings::style::{BorderChar, Offset};
|
use tabled::settings::style::{LineChar, Offset};
|
||||||
use tabled::settings::{Modify, Style};
|
use tabled::settings::{Modify, Style};
|
||||||
|
|
||||||
use crate::environment::Environment;
|
use crate::environment::Environment;
|
||||||
|
@ -40,11 +40,11 @@ pub fn print_binary_sizes(env: &Environment) -> anyhow::Result<()> {
|
||||||
// Write to GitHub summary
|
// Write to GitHub summary
|
||||||
if let Ok(summary_path) = std::env::var("GITHUB_STEP_SUMMARY") {
|
if let Ok(summary_path) = std::env::var("GITHUB_STEP_SUMMARY") {
|
||||||
let mut builder = Builder::default();
|
let mut builder = Builder::default();
|
||||||
|
builder.push_record(vec!["Artifact", "Size"]);
|
||||||
for (name, size_formatted) in items {
|
for (name, size_formatted) in items {
|
||||||
builder.push_record(vec![name, size_formatted]);
|
builder.push_record(vec![name, size_formatted]);
|
||||||
}
|
}
|
||||||
|
|
||||||
builder.set_header(vec!["Artifact", "Size"]);
|
|
||||||
let mut table = builder.build();
|
let mut table = builder.build();
|
||||||
|
|
||||||
let mut file = std::fs::File::options().append(true).create(true).open(summary_path)?;
|
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,
|
file,
|
||||||
"# Artifact size\n{}\n",
|
"# Artifact size\n{}\n",
|
||||||
table.with(Style::markdown()).with(
|
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))),
|
||||||
)
|
)
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue