Skip to content

Commit

Permalink
upgrade to prodash v22 for API improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Dec 5, 2022
1 parent a47ad84 commit 77ab98d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ git-features = { version = "^0.24.1", path = "git-features" }
git-repository = { version = "^0.29.0", path = "git-repository", default-features = false }

clap = { version = "3.2.5", features = ["derive", "cargo"] }
prodash = { version = "21.1", optional = true, default-features = false }
prodash = { version = "22.0", optional = true, default-features = false }
is-terminal = { version = "0.4.0", optional = true }
env_logger = { version = "0.10.0", default-features = false }
crosstermion = { version = "0.10.1", optional = true, default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion git-features/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ crc32fast = { version = "1.2.1", optional = true }
sha1 = { version = "0.10.0", optional = true }

# progress
prodash = { version = "21.1", optional = true, default-features = false, features = ["unit-bytes", "unit-human"] }
prodash = { version = "22.0", optional = true, default-features = false, features = ["unit-bytes", "unit-human"] }

# pipe
bytes = { version = "1.0.0", optional = true }
Expand Down
8 changes: 4 additions & 4 deletions src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ pub fn init_env_logger() {
}

#[cfg(feature = "prodash-render-line")]
pub fn progress_tree() -> std::sync::Arc<prodash::Tree> {
prodash::TreeOptions {
pub fn progress_tree() -> std::sync::Arc<prodash::tree::Root> {
prodash::tree::root::Options {
message_buffer_capacity: 200,
..Default::default()
}
Expand Down Expand Up @@ -143,7 +143,7 @@ pub mod pretty {
UiDone,
ComputationDone(Result<T>, Vec<u8>),
}
let progress = prodash::Tree::new();
let progress = prodash::tree::Root::new();
let sub_progress = progress.add_child(name);
let render_tui = prodash::render::tui(
stdout(),
Expand Down Expand Up @@ -195,7 +195,7 @@ pub mod pretty {
#[allow(unused)]
#[cfg(feature = "prodash-render-line")]
pub fn setup_line_renderer_range(
progress: &std::sync::Arc<prodash::Tree>,
progress: &std::sync::Arc<prodash::tree::Root>,
levels: std::ops::RangeInclusive<prodash::progress::key::Level>,
) -> prodash::render::line::JoinHandle {
prodash::render::line(
Expand Down

0 comments on commit 77ab98d

Please sign in to comment.