Skip to content

Commit 77ab98d

Browse files
committed
upgrade to prodash v22 for API improvements
1 parent a47ad84 commit 77ab98d

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Diff for: Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ git-features = { version = "^0.24.1", path = "git-features" }
8989
git-repository = { version = "^0.29.0", path = "git-repository", default-features = false }
9090

9191
clap = { version = "3.2.5", features = ["derive", "cargo"] }
92-
prodash = { version = "21.1", optional = true, default-features = false }
92+
prodash = { version = "22.0", optional = true, default-features = false }
9393
is-terminal = { version = "0.4.0", optional = true }
9494
env_logger = { version = "0.10.0", default-features = false }
9595
crosstermion = { version = "0.10.1", optional = true, default-features = false }

Diff for: git-features/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ crc32fast = { version = "1.2.1", optional = true }
118118
sha1 = { version = "0.10.0", optional = true }
119119

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

123123
# pipe
124124
bytes = { version = "1.0.0", optional = true }

Diff for: src/shared.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ pub fn init_env_logger() {
2020
}
2121

2222
#[cfg(feature = "prodash-render-line")]
23-
pub fn progress_tree() -> std::sync::Arc<prodash::Tree> {
24-
prodash::TreeOptions {
23+
pub fn progress_tree() -> std::sync::Arc<prodash::tree::Root> {
24+
prodash::tree::root::Options {
2525
message_buffer_capacity: 200,
2626
..Default::default()
2727
}
@@ -143,7 +143,7 @@ pub mod pretty {
143143
UiDone,
144144
ComputationDone(Result<T>, Vec<u8>),
145145
}
146-
let progress = prodash::Tree::new();
146+
let progress = prodash::tree::Root::new();
147147
let sub_progress = progress.add_child(name);
148148
let render_tui = prodash::render::tui(
149149
stdout(),
@@ -195,7 +195,7 @@ pub mod pretty {
195195
#[allow(unused)]
196196
#[cfg(feature = "prodash-render-line")]
197197
pub fn setup_line_renderer_range(
198-
progress: &std::sync::Arc<prodash::Tree>,
198+
progress: &std::sync::Arc<prodash::tree::Root>,
199199
levels: std::ops::RangeInclusive<prodash::progress::key::Level>,
200200
) -> prodash::render::line::JoinHandle {
201201
prodash::render::line(

0 commit comments

Comments
 (0)