commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
9c476cf1a3f31d79d49e56c80b3d2eff7c3f618d | Sebastian Thiel | 2024-07-29T13:53:09 | remove unused feature | diff --git a/src/lib.rs b/src/lib.rs
index 9010569..44583c0 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -33,10 +33,7 @@ Please have a look at the [dashboard demo](https://github.com/Byron/crates-io-cl
[](https://asciinema.org/a/301838)
Run it with `cargo run --example... | 1 | 1 | 4 |
a5dab6e11760acb413663b74bebe0348b6d3ade8 | Sebastian Thiel | 2024-07-29T13:50:17 | upgrade dependencies | diff --git a/Cargo.toml b/Cargo.toml
index 23fc795..fad92e9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -58,7 +58,7 @@ local-time = ["jiff"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-dashmap = { version = "5.1.0", optional = true, default-featur... | 1 | 2 | 2 |
0cca41f4a7a9e6fae995a802b551daa0d3d5ec12 | Sebastian Thiel | 2024-02-03T09:41:59 | update to latest versions of `tui-react` and `crosstermion` | diff --git a/Cargo.toml b/Cargo.toml
index 6e2f5d9..3e01702 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -66,13 +66,13 @@ log = { version = "0.4.8", optional = true }
# render-tui
tui = { package = "ratatui", version = "0.26.0", optional = true, default-features = false }
-tui-react = { version = "0.22.0", optional ... | 1 | 2 | 2 |
5f066f26e347d80edd3cc9480d362b39ce762bd6 | Josh McKinney | 2024-02-02T23:55:38 | chore(deps): update ratatui to 0.26.0
Requires an update to tui-react / crosstermion to work | diff --git a/Cargo.toml b/Cargo.toml
index 2c7ca21..6e2f5d9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -65,7 +65,7 @@ parking_lot = { version = "0.12.1", optional = true, default-features = false }
log = { version = "0.4.8", optional = true }
# render-tui
-tui = { package = "ratatui", version = "0.25.0", optional ... | 1 | 1 | 1 |
18686dbd32e6920ab5d7271c32481f7f41eae4de | Sebastian Thiel | 2023-12-29T08:15:15 | chore!: upgrade `ratatui` and `crosstermion` to latest versions. | diff --git a/Cargo.toml b/Cargo.toml
index e90f764..09f4452 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -65,14 +65,14 @@ parking_lot = { version = "0.12.1", optional = true, default-features = false }
log = { version = "0.4.8", optional = true }
# render-tui
-tui = { package = "ratatui", version = "0.24.0", optiona... | 3 | 26 | 18 |
3c28eb04e42cf0b2d47e4a6538c2436e8abac274 | Sebastian Thiel | 2023-12-07T16:18:14 | thanks clippy | diff --git a/src/messages.rs b/src/messages.rs
index 2abd638..f708736 100644
--- a/src/messages.rs
+++ b/src/messages.rs
@@ -86,7 +86,7 @@ impl MessageRingBuffer {
let cursor_ofs: isize = self.cursor as isize - cursor as isize;
match cursor_ofs {
// the... | 1 | 1 | 1 |
34397f1b39dca0d585326728681a70b654db7118 | Sebastian Thiel | 2023-12-07T16:07:16 | upgrade to `crossterm` v0.27.
Also upgrade various other dependencies to their latest versions | diff --git a/Cargo.toml b/Cargo.toml
index 741390e..9abc655 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -72,15 +72,15 @@ parking_lot = { version = "0.12.1", optional = true, default-features = false }
log = { version = "0.4.8", optional = true }
# render-tui
-tui = { package = "ratatui", version = "0.20.1", optiona... | 1 | 6 | 6 |
d0321067244ed3d76eedc0078c881af2ea603c5b | Sebastian Thiel | 2023-10-24T16:26:47 | refactor | diff --git a/src/unit/duration.rs b/src/unit/duration.rs
index 0a464ce..9e25278 100644
--- a/src/unit/duration.rs
+++ b/src/unit/duration.rs
@@ -1,4 +1,4 @@
-use std::{fmt, time::Duration as StdDuration};
+use std::{fmt, time};
use humantime::format_duration;
@@ -10,13 +10,13 @@ pub struct Duration;
impl Displa... | 1 | 3 | 3 |
967ea46b71c2bb44f7cd75524d101c4bfd2df0bf | Jiahao XU | 2023-09-09T08:42:50 | Relax bound of `Progress`, `Count` impl for `DynNestedProgressToNestedProgress`
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> | diff --git a/src/traits.rs b/src/traits.rs
index f50f676..602915b 100644
--- a/src/traits.rs
+++ b/src/traits.rs
@@ -530,7 +530,7 @@ mod impls {
impl<T> Progress for DynNestedProgressToNestedProgress<T>
where
- T: ?Sized + DynNestedProgress,
+ T: ?Sized + Progress,
{
fn init(&mut... | 1 | 2 | 2 |
7eb69ac3f4946c72a0598b3021153045f3e9626b | Jiahao XU | 2023-09-09T08:34:42 | Fix use of `DynNestedProgress` as trait object
Relaxed `Count` and `Progress` for references for unsized types.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> | diff --git a/src/traits.rs b/src/traits.rs
index fe14324..f50f676 100644
--- a/src/traits.rs
+++ b/src/traits.rs
@@ -245,7 +245,7 @@ mod impls {
impl<'a, T> Count for &'a T
where
- T: Count,
+ T: Count + ?Sized,
{
fn set(&self, step: Step) {
(*self).set(step)
@@ -270... | 1 | 4 | 4 |
53ea2b81292a5062816bb12af0ab4f7931d5d2fa | Sebastian Thiel | 2023-09-06T14:32:40 | fix: Add missing forwardings for various methods.
Not having these could lead to incorrect thoughput display. | diff --git a/src/traits.rs b/src/traits.rs
index d65a80a..fe14324 100644
--- a/src/traits.rs
+++ b/src/traits.rs
@@ -393,6 +393,18 @@ mod impls {
self.0.init(max, unit)
}
+ fn unit(&self) -> Option<Unit> {
+ self.0.unit()
+ }
+
+ fn max(&self) -> Option<Step> {
+ ... | 1 | 60 | 0 |
b3cae191413653feef62808b60b7eea52145e55e | Sebastian Thiel | 2023-09-05T14:25:46 | feat: add `BoxedProgress` type that implements `Progress`.
This makes working with boxed progress even more flexible. | diff --git a/src/lib.rs b/src/lib.rs
index 70e9d44..8b35afc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -65,8 +65,8 @@ pub mod progress;
mod traits;
pub use traits::{
- BoxedDynNestedProgress, Count, DynNestedProgress, DynNestedProgressToNestedProgress, NestedProgress, Progress,
- Root, WeakRoot,
+ BoxedDy... | 2 | 50 | 3 |
0705a734b401d44657be59e83e4cbf58cb4484a8 | Sebastian Thiel | 2023-09-04T17:51:05 | feat: add `progress::AtomicStep` to allow referring to it.
Previously, only `StepShared` was available, which implies an `Arc`. | diff --git a/src/progress/mod.rs b/src/progress/mod.rs
index 842bbb6..e16bc2a 100644
--- a/src/progress/mod.rs
+++ b/src/progress/mod.rs
@@ -37,8 +37,11 @@ pub const UNKNOWN: Id = *b"\0\0\0\0";
/// The amount of steps a progress can make
pub type Step = usize;
+/// The amount of steps a progress can make, for threa... | 1 | 4 | 1 |
6c60835ae49487a220b1817bc6cea3ebc8bf1aff | Sebastian Thiel | 2023-09-04T14:57:25 | feat!: `Progress::counter()` is now mandatory.
This should simplify downstream code and we just accept that we are dealing
with a threaded world.
This also comes with performance improvements as increments are now 250% faster. | diff --git a/benches/usage.rs b/benches/usage.rs
index 9c45bb2..69884e7 100644
--- a/benches/usage.rs
+++ b/benches/usage.rs
@@ -4,6 +4,7 @@ use prodash::{
tree::{root::Options as TreeOptions, Root as Tree},
BoxedDynNestedProgress, Count,
};
+use std::sync::atomic::Ordering;
fn usage(c: &mut Criterion) {
... | 5 | 76 | 22 |
5e76abfbf8dc18afddea68873c50cce677450a54 | Sebastian Thiel | 2023-09-04T14:18:00 | Fixup nested dyn-traits | diff --git a/benches/usage.rs b/benches/usage.rs
index ea3afb0..9c45bb2 100644
--- a/benches/usage.rs
+++ b/benches/usage.rs
@@ -2,7 +2,7 @@ use criterion::*;
use prodash::{
messages::MessageLevel,
tree::{root::Options as TreeOptions, Root as Tree},
- BoxedDynProgress,
+ BoxedDynNestedProgress, Count,
... | 3 | 75 | 248 |
6aba6e34f3e39bba5e609a0bc780c758cb43c821 | Sebastian Thiel | 2023-09-04T12:41:34 | feat!: split `Progress` into various super-traits to allow most of them to be dyn-safe.
`Progress` is now `NestedProgress`, `RawProgress` is now `Progress`, and there is
a new `Count` trait for solely counting things. | diff --git a/benches/usage.rs b/benches/usage.rs
index 97d9101..bd5a28b 100644
--- a/benches/usage.rs
+++ b/benches/usage.rs
@@ -28,7 +28,7 @@ fn usage(c: &mut Criterion) {
.throughput(Throughput::Elements(5))
.bench_function("set tree 5 times", |b| {
let root = small_tree();
- ... | 12 | 312 | 446 |
9d03124667935314a9d4c8e52886b994967f2671 | Sebastian Thiel | 2023-09-04T09:22:50 | Add benchmarks for dyn-traits
They are roughly half as fast due to the dynamic call overhead. | diff --git a/benches/usage.rs b/benches/usage.rs
index 97d9101..e4d4b14 100644
--- a/benches/usage.rs
+++ b/benches/usage.rs
@@ -2,6 +2,7 @@ use criterion::*;
use prodash::{
messages::MessageLevel,
tree::{root::Options as TreeOptions, Root as Tree},
+ BoxedDynProgress,
};
fn usage(c: &mut Criterion) {... | 1 | 24 | 7 |
54094b63289446f0582c6b49a666b5d993625dff | Sebastian Thiel | 2023-09-04T09:19:33 | refactor | diff --git a/src/traits.rs b/src/traits.rs
index 205c210..5ddfe95 100644
--- a/src/traits.rs
+++ b/src/traits.rs
@@ -223,9 +223,8 @@ pub trait DynProgress: Send + Sync + impls::Sealed {
/// An opaque type for storing [`DynProgress`].
pub struct BoxedDynProgress(Box<dyn DynProgress>);
-/// A bridge type that impleme... | 1 | 3 | 4 |
2bfe9adca357cf48d7310036684eeb85efa5ef46 | Sebastian Thiel | 2023-08-22T13:49:25 | Remove `atty` in favor of `is-terminal`
The std version of it is only usable in v1.70 unfortunately. | diff --git a/Cargo.toml b/Cargo.toml
index f50e2d3..6b3d195 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -59,7 +59,7 @@ render-tui = ["tui",
render-line = ["crosstermion/color", "humantime", "unicode-width"]
render-line-crossterm = ["crosstermion/crossterm"]
render-line-termion = ["crosstermion/termion"]
-render-line... | 3 | 8 | 15 |
24d0b2aaa58978990fea90c2f3b387e238acf966 | Jiahao XU | 2023-08-19T08:42:38 | feat: Add new trait `DynProgress` & type `BoxedDynProgress`
Fixed #21
`DynProgress` is sealed and implemented for any type that implements
`Progress`.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> | diff --git a/src/lib.rs b/src/lib.rs
index e3eb604..96831a4 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -64,7 +64,7 @@ pub mod messages;
pub mod progress;
mod traits;
-pub use traits::{Progress, RawProgress, Root, WeakRoot};
+pub use traits::{BoxedDynProgress, DynProgress, DynProgressToProgressBridge, Progress, Raw... | 2 | 341 | 3 |
78272c0f2a243b9e07165813a0eacc6ade623b90 | Sebastian Thiel | 2023-07-16T07:35:51 | upgrade criterion to the latest version, it compiles more quickly. | diff --git a/Cargo.toml b/Cargo.toml
index a6bb060..e1a2be9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -101,7 +101,7 @@ all-features = true
[dev-dependencies]
rand = "0.8.1"
env_logger = { version = "0.10.0", default-features = false, features = ["humantime"] }
-criterion = { version = "0.4.0", default-features = f... | 1 | 1 | 1 |
17dd8f64563dd96ca454494e24a7f229716f6b1f | Sebastian Thiel | 2023-07-16T07:25:20 | fix: `log` progress now supports a shared counter, just like the tree-item implementation | diff --git a/src/progress/log.rs b/src/progress/log.rs
index 6fb16f1..85b60cc 100644
--- a/src/progress/log.rs
+++ b/src/progress/log.rs
@@ -21,7 +21,7 @@ pub struct Log {
id: Id,
max: Option<usize>,
unit: Option<Unit>,
- step: usize,
+ step: StepShared,
current_level: usize,
max_level: u... | 2 | 31 | 23 |
84d96c7b6ab07462d6c20147958d5aa1a58a688e | Sebastian Thiel | 2023-05-16T17:12:57 | feat!: Make messaging functions thread-safe by taking shared borrow and requring `Sync`.
That way it's possible to share the `RawProgress` object across threads and emit messages,
much like a logging system that's more integrated with rendering. | diff --git a/src/progress/log.rs b/src/progress/log.rs
index 3410a5d..6fb16f1 100644
--- a/src/progress/log.rs
+++ b/src/progress/log.rs
@@ -136,7 +136,7 @@ impl Progress for Log {
self.id
}
- fn message(&mut self, level: MessageLevel, message: impl Into<String>) {
+ fn message(&self, level: Messa... | 5 | 49 | 39 |
8941f4b5b9c0d00dfd7b82c756b128982f163a06 | Sebastian Thiel | 2023-05-16T08:17:32 | feat: Introduce the object-safe `RawProgress` trait.
It's automatically implemented for `Progress` and allows for more flexible use
of progress particularly in leaf nodes. This is useful if a function needs to take
multiple types of progress as it is called from different places in the same function.
Without dyn-trai... | diff --git a/src/lib.rs b/src/lib.rs
index 974cc85..e3eb604 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -64,7 +64,7 @@ pub mod messages;
pub mod progress;
mod traits;
-pub use traits::{Progress, Root, WeakRoot};
+pub use traits::{Progress, RawProgress, Root, WeakRoot};
mod throughput;
pub use crate::throughput:... | 4 | 233 | 3 |
25356a369c345b1e89f7c6c356ff7142020849de | Sebastian Thiel | 2023-05-11T09:27:23 | thanks clippy | diff --git a/src/progress/key.rs b/src/progress/key.rs
index dae714d..bfdf13b 100644
--- a/src/progress/key.rs
+++ b/src/progress/key.rs
@@ -15,12 +15,13 @@ pub(crate) type Id = u16;
pub struct Key(Option<Id>, Option<Id>, Option<Id>, Option<Id>, Option<Id>, Option<Id>);
/// Determines if a sibling is above or below... | 3 | 5 | 21 |
fe5d01736179271f6b7bf20367f5d0e2bb616c4a | Sebastian Thiel | 2023-05-11T09:23:36 | chore!: switch from `tui` to `ratatui`.
The latter is a maintained fork. | diff --git a/Cargo.toml b/Cargo.toml
index e442f15..d8a16a1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -72,14 +72,14 @@ parking_lot = { version = "0.12.1", optional = true, default-features = false }
log = { version = "0.4.8", optional = true }
# render-tui
-tui = { version = "0.19.0", optional = true, default-fea... | 1 | 3 | 3 |
7966f79cc7009acb33761cee70398b05b0006cc1 | Sebastian Thiel | 2023-03-11T20:25:00 | fix: line renderer now properly detects changes.
Previously change-detection was implemented based on the assumption that
the progress tree is copied entirely. Now, however, the interesting values
are shared.
The change-detection was adjusted to keep the state's hash of the most recent
drawing, instead of doing every... | diff --git a/src/render/line/draw.rs b/src/render/line/draw.rs
index cfd5eaa..b45badf 100644
--- a/src/render/line/draw.rs
+++ b/src/render/line/draw.rs
@@ -21,6 +21,7 @@ use crate::{
#[derive(Default)]
pub struct State {
tree: Vec<(progress::Key, progress::Task)>,
+ tree_hash: u64,
messages: Vec<Message... | 1 | 4 | 5 |
7ae8a0793752b713c6605be45688ca81fbb7e75e | Sebastian Thiel | 2023-03-02T20:02:19 | upgrade dependencies, particularly `parking_lot` | diff --git a/Cargo.toml b/Cargo.toml
index 0f4f66f..de1633b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -66,7 +66,7 @@ local-time = ["time"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dashmap = { version = "5.1.0", optional = true, default-features... | 1 | 3 | 3 |
490336f9920ccde0ebe8d142dc51b390e9afc899 | Sebastian Thiel | 2023-02-28T19:47:43 | make fmt | diff --git a/src/render/line/draw.rs b/src/render/line/draw.rs
index 9f6de5e..cfd5eaa 100644
--- a/src/render/line/draw.rs
+++ b/src/render/line/draw.rs
@@ -1,6 +1,10 @@
-use std::collections::hash_map::DefaultHasher;
-use std::hash::{Hash, Hasher};
-use std::{collections::VecDeque, io, ops::RangeInclusive, sync::atomi... | 6 | 13 | 12 |
a1db1b27fc7f14be052bbfc660c9c9b174c1d3cc | Sebastian Thiel | 2022-12-29T10:28:51 | feat!: Implement `Hash` for `Task` to avoid redrawing if nothing changes with the Line renderer.
That way, if everything stops due to a user prompt, the user's input won't be clobbered
continnuously. | diff --git a/src/progress/mod.rs b/src/progress/mod.rs
index de14fe2..0d9c694 100644
--- a/src/progress/mod.rs
+++ b/src/progress/mod.rs
@@ -41,7 +41,7 @@ pub type Step = usize;
pub type StepShared = Arc<AtomicUsize>;
/// Indicate whether a progress can or cannot be made.
-#[derive(Copy, Clone, Eq, PartialEq, Ord, ... | 12 | 91 | 14 |
ea9aa5815ef2d1c734b85c185ddb65ac731b1195 | Sebastian Thiel | 2022-12-06T09:15:31 | feat: `progress::Key` now supports 6 levels of hierarchy instead of 4.
That way it's less likely that surprises occour of more than necessary
levels are added. | diff --git a/src/progress/key.rs b/src/progress/key.rs
index b589bbe..dae714d 100644
--- a/src/progress/key.rs
+++ b/src/progress/key.rs
@@ -12,7 +12,7 @@ pub(crate) type Id = u16;
/// A type identifying a spot in the hierarchy of `Tree` items.
#[derive(Copy, Clone, Default, Hash, Eq, PartialEq, Ord, PartialOrd, De... | 7 | 220 | 201 |
46aeffd13cda49146c8a33e93c8c9b0fbcb15c8b | Sebastian Thiel | 2022-12-05T07:43:15 | chore: switch to Rust edition 2021 | diff --git a/Cargo.toml b/Cargo.toml
index f7225e9..0708aac 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ name = "prodash"
version = "21.1.0"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "A dashboard for visualizing progress of asynchronous and possibly blocking tasks"
-edition... | 1 | 1 | 1 |
6e90cb965377762920d4dbb5debe8d47a4be89a2 | Sebastian Thiel | 2022-12-05T07:39:03 | make fmt | diff --git a/benches/usage.rs b/benches/usage.rs
index 8f073da..97d9101 100644
--- a/benches/usage.rs
+++ b/benches/usage.rs
@@ -1,5 +1,8 @@
use criterion::*;
-use prodash::{messages::MessageLevel, tree::root::Options as TreeOptions, tree::Root as Tree};
+use prodash::{
+ messages::MessageLevel,
+ tree::{root::O... | 6 | 15 | 11 |
edab37364276864d45241c2946173388a0602f23 | Sebastian Thiel | 2022-12-05T07:31:39 | feat!: `From<tree::root::Options> for tree::Root`, `tree::root::Options::create()` returns `tree::Root` instead of `Arc`.
That way we won't be forced to produce an `Arc` if it's not needed. | diff --git a/benches/usage.rs b/benches/usage.rs
index 6998a92..8f073da 100644
--- a/benches/usage.rs
+++ b/benches/usage.rs
@@ -1,5 +1,5 @@
use criterion::*;
-use prodash::{messages::MessageLevel, Tree, TreeOptions};
+use prodash::{messages::MessageLevel, tree::root::Options as TreeOptions, tree::Root as Tree};
fn... | 4 | 15 | 7 |
53cb09dc0314b0e8ce58dc50e0c07a053b963ccd | Sebastian Thiel | 2022-12-05T07:27:20 | change!: remove `Tree` and `TreeOptions` in favor of `tree::Root` and `tree::root::Options`.
Previously it was confusing what a tree Root actually is due to the
rename, and ambiguity isn't what we would want here. | diff --git a/examples/dashboard.rs b/examples/dashboard.rs
index 10fc08e..adc22d2 100644
--- a/examples/dashboard.rs
+++ b/examples/dashboard.rs
@@ -17,9 +17,9 @@ fn main() -> Result {
}
async fn work_forever(mut args: args::Options) -> Result {
- let progress = prodash::TreeOptions {
+ let progress = prodash... | 8 | 59 | 62 |
5415acc4cae7bab81a22758fe969bdb8b3deac13 | Sebastian Thiel | 2022-11-23T14:30:08 | `make fmt` | diff --git a/benches/usage.rs b/benches/usage.rs
index 9f30ee3..6998a92 100644
--- a/benches/usage.rs
+++ b/benches/usage.rs
@@ -1,5 +1,4 @@
use criterion::*;
-
use prodash::{messages::MessageLevel, Tree, TreeOptions};
fn usage(c: &mut Criterion) {
diff --git a/examples/dashboard.rs b/examples/dashboard.rs
index 3... | 32 | 167 | 110 |
c332a6f266a6ae0cacf19cb523e551bb63c1e7ea | Sebastian Thiel | 2022-11-23T08:57:42 | feat: identify each progress item with `Id` using `add_child_with_id()`.
An `Id` is four bytes like b"TREE" that are stable and
identify progress items (as created by `add_child(…)` within
a function call.
Callers may use this knowledge to pick specific progress items
for consumption, instead of trying to rely on ide... | diff --git a/examples/units.rs b/examples/units.rs
index 842f842..0033c43 100644
--- a/examples/units.rs
+++ b/examples/units.rs
@@ -26,7 +26,7 @@ fn main() -> Result {
}
fn work_for_a_long_time_blocking(root: Arc<Tree>) {
- let mut bytes = root.add_child("download unknown");
+ let mut bytes = root.add_child_... | 9 | 153 | 23 |
3347a0294c5b95270c34de9f396214353baea36d | Sebastian Thiel | 2022-10-17T09:01:00 | feat: `impl Progress for &mut T: where T: Progress`.
This makes it possible to hand borrowed progress implementations to
functions that need progress reporting, making the usage of progress
easier. | diff --git a/src/traits.rs b/src/traits.rs
index a511e86..782ee77 100644
--- a/src/traits.rs
+++ b/src/traits.rs
@@ -155,7 +155,7 @@ pub trait WeakRoot {
fn upgrade(&self) -> Option<Self::Root>;
}
-/// The top level of a progress task hiearchy, with `progress::Task`s identified with `progress::Key`s
+/// The to... | 1 | 88 | 1 |
300181bdd4b2ef1822dddd1fe814d7e3e5b26779 | Sebastian Thiel | 2022-10-17T08:58:50 | feat!: remove `Progress: 'static` requirement.
This requirement can be added where used and where needed, and
originally snuck in because it was easier and `Progress` implementations
typically are `'static` as well.
However, that requirement made it impossible to implement `Progoress`
for `&mut T where T: Progress`. | diff --git a/src/traits.rs b/src/traits.rs
index 3a79eac..a511e86 100644
--- a/src/traits.rs
+++ b/src/traits.rs
@@ -2,7 +2,7 @@ use crate::{messages::MessageLevel, progress, Unit};
use std::time::Instant;
/// A trait for describing hierarchical process.
-pub trait Progress: Send + 'static {
+pub trait Progress: Se... | 1 | 1 | 1 |
414bc71e79475335345dbc529566a6efc3afee23 | Sebastian Thiel | 2022-09-20T05:32:00 | fix: don't reset the shared counter value on `init`.
It's possible to re-initialize the progress, and when that's done
it would detach the counter from previous instances that might have
been observed by callers to `counter()`, which is surprising. | diff --git a/src/tree/item.rs b/src/tree/item.rs
index e073348..96ba1d2 100644
--- a/src/tree/item.rs
+++ b/src/tree/item.rs
@@ -57,7 +57,7 @@ impl Item {
/// **Note** that this method can be called multiple times, changing the bounded-ness and unit at will.
pub fn init(&mut self, max: Option<usize>, unit: Op... | 1 | 1 | 1 |
4904065a51594b5bc4f32a247e513b45093373fa | Sebastian Thiel | 2022-09-20T05:26:53 | feat: Add `Progress::set_max()` to set the highgest expected progress value. | diff --git a/src/progress/log.rs b/src/progress/log.rs
index c86e30c..e86a66a 100644
--- a/src/progress/log.rs
+++ b/src/progress/log.rs
@@ -1,4 +1,4 @@
-use crate::progress::StepShared;
+use crate::progress::{Step, StepShared};
use crate::{messages::MessageLevel, Progress, Unit};
use std::sync::atomic::{AtomicBool, ... | 4 | 54 | 6 |
b023efdc9c076f15cef1978ad95d932f782bdea7 | Sebastian Thiel | 2022-09-20T04:58:53 | make more explicit what is cloned (without altering actual behaviour) | diff --git a/src/tree/item.rs b/src/tree/item.rs
index 9089c36..df59cdb 100644
--- a/src/tree/item.rs
+++ b/src/tree/item.rs
@@ -277,6 +277,6 @@ impl crate::Progress for Item {
}
fn counter(&self) -> Option<StepShared> {
- Some(self.value.clone())
+ Some(Arc::clone(&self.value))
}
} | 1 | 1 | 1 |
a0e7da7d08331eeeea8ca0cb6e349fe32ce876bc | Sebastian Thiel | 2022-09-20T03:15:15 | fix: implement `Progress::counter()` for all utility types.
This was forgotten previously as there was a default implementation
right from the start. | diff --git a/src/progress/log.rs b/src/progress/log.rs
index 9a75f34..c86e30c 100644
--- a/src/progress/log.rs
+++ b/src/progress/log.rs
@@ -1,3 +1,4 @@
+use crate::progress::StepShared;
use crate::{messages::MessageLevel, Progress, Unit};
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
@@ -118,4 ... | 2 | 25 | 0 |
fe0ac0659c5faba9b9c0b699850ffc9e66b566f0 | Sebastian Thiel | 2022-09-20T01:40:10 | fix compile warnings for some configurations | diff --git a/src/render/line/engine.rs b/src/render/line/engine.rs
index 9896a06..21b333f 100644
--- a/src/render/line/engine.rs
+++ b/src/render/line/engine.rs
@@ -1,4 +1,5 @@
use crate::{progress, render::line::draw, Throughput, WeakRoot};
+#[cfg(feature = "signal-hook")]
use std::sync::Arc;
use std::{
io,
@@... | 1 | 5 | 1 |
deb77916c1ced591410aba2593284c6a1345d426 | Sebastian Thiel | 2022-09-20T01:38:51 | thanks clippy | diff --git a/src/render/tui/draw/progress.rs b/src/render/tui/draw/progress.rs
index 64386e6..7d64567 100644
--- a/src/render/tui/draw/progress.rs
+++ b/src/render/tui/draw/progress.rs
@@ -287,7 +287,9 @@ fn add_block_eta(state: progress::State, progress_text: &mut String) {
if let Some(eta) = maybe_eta {
... | 1 | 5 | 2 |
08be317dbd77f0fdb9673b9c24c239ad0d5078c3 | Sebastian Thiel | 2022-09-20T01:37:30 | feat: `Progress::counter()` returns a shared step counter.
This is useful if multiple threads want to access the same progress, without the need
for provide each their own progress and aggregating the result. | diff --git a/src/traits.rs b/src/traits.rs
index 580b662..2658ca3 100644
--- a/src/traits.rs
+++ b/src/traits.rs
@@ -71,6 +71,14 @@ pub trait Progress: Send + 'static {
/// made, including indicating success or failure.
fn message(&mut self, level: MessageLevel, message: impl Into<String>);
+ /// If avai... | 2 | 13 | 0 |
447aa0f518aaa97dd061813a501e6a0b8512dd88 | Sebastian Thiel | 2022-09-15T01:26:46 | Do away with unsafe code by using safe wrappers instead.
This comes at the cost of creating two Arcs which seems acceptable. | diff --git a/src/render/line/engine.rs b/src/render/line/engine.rs
index 704fec3..9896a06 100644
--- a/src/render/line/engine.rs
+++ b/src/render/line/engine.rs
@@ -1,4 +1,5 @@
use crate::{progress, render::line::draw, Throughput, WeakRoot};
+use std::sync::Arc;
use std::{
io,
ops::RangeInclusive,
@@ -215,2... | 1 | 8 | 18 |
5de765b6c134be6c439583dd89297fe2b3f1e41f | Sebastian Thiel | 2022-09-15T01:12:48 | only register SIGWINCH signal on unix (#12)
There are more platforms that support it, but past unix it's the
minority. | diff --git a/src/render/line/engine.rs b/src/render/line/engine.rs
index 7d4a515..704fec3 100644
--- a/src/render/line/engine.rs
+++ b/src/render/line/engine.rs
@@ -230,6 +230,7 @@ pub fn render(
// SAFETY: We use an atomic bool which is non-blocking and safe to do from a signal handler.
#[allow(uns... | 1 | 1 | 0 |
bab2ea09089e2eb8e4e826bb17211a444aa35f31 | Sebastian Thiel | 2022-09-12T02:24:36 | feat: line renderer adjusts when resizing the terminal. | diff --git a/src/render/line/engine.rs b/src/render/line/engine.rs
index 9157d3b..7d4a515 100644
--- a/src/render/line/engine.rs
+++ b/src/render/line/engine.rs
@@ -178,6 +178,7 @@ impl Drop for JoinHandle {
#[derive(Debug)]
enum Event {
Tick,
+ Resize(u16, u16),
Quit,
}
@@ -200,7 +201,7 @@ pub fn ren... | 1 | 23 | 1 |
a3b26782dc074c469b5fc480595d2ac9ef8bc9d0 | Sebastian Thiel | 2022-09-12T02:13:38 | chore!: upgrade dependencies to tui `0.19` and crossterm `0.25` | diff --git a/Cargo.toml b/Cargo.toml
index f4fc3b3..de6abb0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -71,14 +71,14 @@ parking_lot = { version = "0.11.0", optional = true, default-features = false }
log = { version = "0.4.8", optional = true }
# render-tui
-tui = { version = "0.17.0", optional = true, default-fea... | 1 | 3 | 3 |
dbca35f478253176e852c177e79b3253eaafe3bd | Sebastian Thiel | 2022-03-20T11:30:50 | fix: line renderer will clear previous lines if progress is lost
Previously it would just exit its main loop and leave lines on screen. | diff --git a/src/render/line/draw.rs b/src/render/line/draw.rs
index 734b061..6c159d2 100644
--- a/src/render/line/draw.rs
+++ b/src/render/line/draw.rs
@@ -25,6 +25,20 @@ pub struct State {
pub throughput: Option<Throughput>,
}
+impl State {
+ pub(crate) fn update_from_progress(&mut self, progress: &impl Ro... | 2 | 29 | 18 |
39bc2379c966244746b4ce361e576997159e19aa | Sebastian Thiel | 2022-03-20T10:09:25 | fix benchmark compilation | diff --git a/benches/usage.rs b/benches/usage.rs
index 6cf11c8..9f30ee3 100644
--- a/benches/usage.rs
+++ b/benches/usage.rs
@@ -3,7 +3,7 @@ use criterion::*;
use prodash::{messages::MessageLevel, Tree, TreeOptions};
fn usage(c: &mut Criterion) {
- fn small_tree() -> Tree {
+ fn small_tree() -> std::sync::Arc... | 1 | 1 | 1 |
b6d5245344bde92672cd98aecacb5d94ecca4e19 | Sebastian Thiel | 2022-03-20T03:49:28 | feat!: Allow rendererers to respond to dropped progress roots
Previously it needed extra effort to communicate that a the computation
was done and the renderer should stop rendering progress.
Now they only obtain a weak progress instance so it can drop if the
computation is done, terminating it naturally and in time.... | diff --git a/examples/dashboard.rs b/examples/dashboard.rs
index dc0eef2..34e0cd2 100644
--- a/examples/dashboard.rs
+++ b/examples/dashboard.rs
@@ -148,7 +148,7 @@ async fn work_item(mut progress: Item, speed: f32, changing_names: bool) {
}
}
-async fn new_chunk_of_work(max: NestingLevel, tree: Tree, speed: f3... | 9 | 97 | 58 |
6bdb7e8ea3a65d51e69436799de3f9862b55dba4 | Sebastian Thiel | 2022-02-07T01:13:54 | Actually, the correct dashmap version is 5.1 | diff --git a/Cargo.toml b/Cargo.toml
index 7e6ed32..300fc73 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -64,7 +64,7 @@ local-time = ["time"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-dashmap = { version = "5.0.1", optional = true, default-featur... | 1 | 1 | 1 |
e4f2ab842b34f4a4fe9b2f4c34b664a2e3dba200 | Sebastian Thiel | 2022-02-07T01:12:32 | chore: Upgrade dashmap to 5.0.1 (with security fix) | diff --git a/Cargo.toml b/Cargo.toml
index 0f4399f..d8bb111 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -64,7 +64,7 @@ local-time = ["time"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-dashmap = { version = "4.0.0", optional = true, default-featur... | 1 | 1 | 1 |
a1f8aa650d1a1d2ac53025e29c71782b1cab58c5 | Sebastian Thiel | 2022-02-01T06:31:59 | fix: Downgrade to dashmap 4.0
While waiting for unoundness to be resolved.
See the issue for details: https://github.com/xacrimon/dashmap/issues/167 | diff --git a/Cargo.toml b/Cargo.toml
index 8c100ea..bfad82e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -64,7 +64,7 @@ local-time = ["time"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-dashmap = { version = "5.0.0", optional = true, default-featur... | 1 | 1 | 1 |
482b54f9c584b0e2d22c53622c9f7ad45b79ad2c | Sebastian Thiel | 2022-01-23T02:08:21 | feat!: upgrade to tui 0.17 | diff --git a/Cargo.toml b/Cargo.toml
index 6106291..a4d0a50 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -71,14 +71,14 @@ parking_lot = { version = "0.11.0", optional = true, default-features = false }
log = { version = "0.4.8", optional = true }
# render-tui
-tui = { version = "0.16.0", optional = true, default-fea... | 1 | 3 | 3 |
46214a306793a6a9f304f854dfd7396ceaf433d3 | Sebastian Thiel | 2022-01-03T07:54:24 | feat!: Add `MessageLevel` parameter to `Progress::show_throughput_with(…, level)`
This allows to use message level for highlighting of certain
throughputs and results. | diff --git a/src/traits.rs b/src/traits.rs
index 8e064a9..1bf39a7 100644
--- a/src/traits.rs
+++ b/src/traits.rs
@@ -87,7 +87,7 @@ pub trait Progress: Send + 'static {
fn show_throughput(&mut self, start: Instant) {
let step = self.step();
match self.unit() {
- Some(unit) => self.show_... | 1 | 4 | 4 |
2fe3eebbd62ddd9beacc294eb6ec04b4b39a26f6 | Sebastian Thiel | 2022-01-03T01:09:53 | fix: `Progress::init(None, None)` now resets the progress entirely | diff --git a/src/traits.rs b/src/traits.rs
index 9dcdddd..8e064a9 100644
--- a/src/traits.rs
+++ b/src/traits.rs
@@ -20,6 +20,8 @@ pub trait Progress: Send + 'static {
///
/// If `unit` is `Some(…)`, it is used for display purposes only. See `prodash::Unit` for more information.
///
+ /// If both `uni... | 2 | 3 | 1 |
aa70a27ef1de930fdd00266239ee262b52a681a1 | Sebastian Thiel | 2022-01-01T00:57:18 | fix: reset the shared value on init to avoid keeping the previously set value. | diff --git a/src/tree/item.rs b/src/tree/item.rs
index a228794..f898b3d 100644
--- a/src/tree/item.rs
+++ b/src/tree/item.rs
@@ -57,6 +57,7 @@ impl Item {
/// **Note** that this method can be called multiple times, changing the bounded-ness and unit at will.
pub fn init(&mut self, max: Option<usize>, unit: Op... | 1 | 1 | 0 |
ca5f544594facc92c8744b293c7287dcffe065e5 | Sebastian Thiel | 2021-12-27T05:55:11 | fix: correct signature of new 'running()' method | diff --git a/src/tree/item.rs b/src/tree/item.rs
index 3c6842c..a228794 100644
--- a/src/tree/item.rs
+++ b/src/tree/item.rs
@@ -154,9 +154,9 @@ impl Item {
}
/// Call to indicate that progress is back in running state, which should be called after the reason for
- /// calling `blocked()` or `halted()` a... | 1 | 3 | 3 |
3886754817ac528178b8ea326d0b4d576168eb28 | Sebastian Thiel | 2021-12-27T05:47:06 | feat: Setting the progress value is now 9x faster
This is accomplished at the cost of not autoamtically setting the
progress to 'running' anymore when the progress is set. | diff --git a/src/progress/mod.rs b/src/progress/mod.rs
index 92b5037..360b501 100644
--- a/src/progress/mod.rs
+++ b/src/progress/mod.rs
@@ -1,5 +1,5 @@
use crate::unit::Unit;
-use std::sync::atomic::AtomicUsize;
+use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
use std::time::SystemTime;
@@ -62... | 7 | 198 | 15 |
4f527c12caa85018de293762194f9a2aed5daaea | Sebastian Thiel | 2021-12-06T08:14:56 | An experiment to show we don't want to rely on dashmap for this
Using a simple arc is 10x faster, and there should be nothing preventing
us to build a tree from Arc handles pointers to nodes, all of which
carrying their shared value directly. | diff --git a/src/progress/mod.rs b/src/progress/mod.rs
index 700623d..92b5037 100644
--- a/src/progress/mod.rs
+++ b/src/progress/mod.rs
@@ -1,4 +1,6 @@
use crate::unit::Unit;
+use std::sync::atomic::AtomicUsize;
+use std::sync::Arc;
use std::time::SystemTime;
///
@@ -18,6 +20,9 @@ pub use utils::{Discard, DoOrDis... | 7 | 27 | 189 |
e6f53d59ef1aef027a2aad5b164535c6ca0d620b | Sebastian Thiel | 2021-12-19T01:39:47 | chore: upgrade dashmap to latest version | diff --git a/Cargo.toml b/Cargo.toml
index 7f6143a..120f47a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -64,7 +64,7 @@ local-time = ["time"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-dashmap = { version = "4.0.1", optional = true, default-featur... | 1 | 1 | 1 |
c1258e250207889c62ef3208590d84185752e1a2 | Sebastian Thiel | 2021-11-01T23:56:11 | thanks clippy | diff --git a/src/render/line/engine.rs b/src/render/line/engine.rs
index 096b142..e5ee8a4 100644
--- a/src/render/line/engine.rs
+++ b/src/render/line/engine.rs
@@ -231,7 +231,7 @@ pub fn render(
let tick_send = event_send.clone();
move || {
{
- let initial_... | 1 | 1 | 1 |
fec0304eba34db15c981a040c21e0371a5ac50d2 | Sebastian Thiel | 2021-08-31T06:54:59 | Release prodash v16.0.0 | diff --git a/Cargo.toml b/Cargo.toml
index d470925..7f6143a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "prodash"
-version = "15.0.1"
+version = "16.0.0"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "A dashboard for visualizing progress of asynchronous and p... | 1 | 1 | 1 |
72ea8a9565da457d6f1881bc64e6223c57a951a0 | Sebastian Thiel | 2021-08-31T02:48:51 | Release prodash v15.0.1 | diff --git a/Cargo.toml b/Cargo.toml
index 230a642..15c85fa 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "prodash"
-version = "15.0.0"
+version = "15.0.1"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "A dashboard for visualizing progress of asynchronous and p... | 1 | 1 | 1 |
5ebf8b4af0c19472a0efb29a2ac95dbe47c3fdd8 | Sebastian Thiel | 2021-07-30T01:20:12 | thanks clippy | diff --git a/src/progress/key.rs b/src/progress/key.rs
index e08bbb9..40ab76b 100644
--- a/src/progress/key.rs
+++ b/src/progress/key.rs
@@ -205,7 +205,7 @@ impl Key {
adjecency[level].merge(Above); // the root or any other sibling on level one
continue;
}
- ... | 3 | 9 | 12 |
30d61c5f57ab9d1200d237a23d272a43f1609956 | Sebastian Thiel | 2021-07-30T01:17:01 | dependency update | diff --git a/Cargo.toml b/Cargo.toml
index bf02586..3faf394 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -100,7 +100,7 @@ all-features = true
[dev-dependencies]
rand = "0.8.1"
-env_logger = { version = "0.8.2", default-features = false, features = ["termcolor", "atty", "humantime"] }
+env_logger = { version = "0.9.0... | 1 | 1 | 1 |
aa715ae0903cbc95a0e1245e5fa62e3b505eae35 | Sebastian Thiel | 2021-07-03T12:41:54 | Use pin instead of boxing unnecessarily. | diff --git a/examples/units.rs b/examples/units.rs
index d6e3003..469fce3 100644
--- a/examples/units.rs
+++ b/examples/units.rs
@@ -20,7 +20,8 @@ fn main() -> Result {
let mut unblock = blocking::Unblock::new(());
unblock.with_mut(move |_| work_for_a_long_time_blocking(root)).await
};
- futur... | 1 | 2 | 2 |
a6492c697f6afa79ee9bdec7c355d7f4388e5a6c | Sebastian Thiel | 2021-06-16T06:05:37 | (cargo-release) version 14.0.0 | diff --git a/Cargo.toml b/Cargo.toml
index 8aee323..bf02586 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "prodash"
-version = "13.1.1"
+version = "14.0.0"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "A dashboard for visualizing progress of asynchronous and p... | 1 | 1 | 1 |
d120f2fb4f46fc66c4533d5c4f5f4ee1aeec7fd4 | Sebastian Thiel | 2021-05-08T08:28:39 | (cargo-release) version 13.1.1 | diff --git a/Cargo.toml b/Cargo.toml
index 917d470..8d46414 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "prodash"
-version = "13.1.0"
+version = "13.1.1"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "A dashboard for visualizing progress of asynchronous and p... | 1 | 1 | 1 |
8aedcab872bfbad27c4ca120370e428d1a227324 | Sebastian Thiel | 2021-05-08T07:45:29 | (cargo-release) version 13.1.0 | diff --git a/Cargo.toml b/Cargo.toml
index 130f1aa..917d470 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "prodash"
-version = "13.0.1"
+version = "13.1.0"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "A dashboard for visualizing progress of asynchronous and p... | 1 | 1 | 1 |
0d41f111875598a90b7a2a7a8f4e0872feb1a285 | Sebastian Thiel | 2021-05-08T06:47:08 | (cargo-release) version 13.0.1 | diff --git a/Cargo.toml b/Cargo.toml
index bf16fc9..c371870 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "prodash"
-version = "13.0.0"
+version = "13.0.1"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "A dashboard for visualizing progress of asynchronous and p... | 1 | 1 | 1 |
26c74976ee4e6c3eec89dddf1a90e6ce22539dd8 | Sebastian Thiel | 2021-05-08T06:45:34 | Don't try to hide the cursor if the output isn't a terminal | diff --git a/src/render/line/draw.rs b/src/render/line/draw.rs
index a28a83d..9f330b9 100644
--- a/src/render/line/draw.rs
+++ b/src/render/line/draw.rs
@@ -76,7 +76,7 @@ fn messages(
.style(color.dimmed().on(Color::Yellow))
.paint(crate::time::format_time_for_messages(*time)),... | 2 | 2 | 2 |
4d1dd313430054f17b2daddad8bd9d81061e60b0 | Sebastian Thiel | 2021-05-08T06:11:02 | more robust example for handling ttys and TUI | diff --git a/examples/shared/mod.rs b/examples/shared/mod.rs
index 2c5bc99..43aac51 100644
--- a/examples/shared/mod.rs
+++ b/examples/shared/mod.rs
@@ -30,7 +30,7 @@ pub fn launch_ambient_gui(
let mut interruptible = true;
let render_fut = match renderer {
"line" => async move {
- let out... | 1 | 40 | 33 |
13404f5f34d49e5607fa77e56bef0669b24c4adb | Sebastian Thiel | 2021-05-08T05:42:31 | thanks clippy | diff --git a/src/render/line/engine.rs b/src/render/line/engine.rs
index fca2fb5..f3ae1e1 100644
--- a/src/render/line/engine.rs
+++ b/src/render/line/engine.rs
@@ -153,12 +153,12 @@ pub fn render(
throughput,
} = config;
let config = draw::Options {
- output_is_terminal,
+ level_filter... | 2 | 4 | 4 |
c0a97fa648cb2a0491d09bd0fbdd1daa6d6e290e | Sebastian Thiel | 2021-05-02T23:13:23 | (cargo-release) version 13.0.0 | diff --git a/Cargo.toml b/Cargo.toml
index 29c988e..3fa57b3 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "prodash"
-version = "12.0.2"
+version = "13.0.0"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "A dashboard for visualizing progress of asynchronous and p... | 1 | 1 | 1 |
edd11be0aa6ed84370603452286182a28c577961 | Sebastian Thiel | 2021-05-02T23:12:21 | upgrade to tui 0.15 | diff --git a/Cargo.toml b/Cargo.toml
index cc134d0..29c988e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -70,14 +70,14 @@ parking_lot = { version = "0.11.0", optional = true, default-features = false }
log = { version = "0.4.8", optional = true }
# render-tui
-tui = { version = "0.14.0", optional = true, default-fea... | 1 | 3 | 3 |
03d1c2067778fb6ec231bf18dd587046a03434bc | Sebastian Thiel | 2021-05-02T23:07:35 | crosstermion: Upgrade to tui 0.15 | diff --git a/crosstermion/Cargo.toml b/crosstermion/Cargo.toml
index f4659d0..9880cfe 100644
--- a/crosstermion/Cargo.toml
+++ b/crosstermion/Cargo.toml
@@ -29,13 +29,13 @@ tui-crossterm-backend = ["tui/crossterm"]
[dependencies]
-crossterm = { version = "0.18.0", optional = true, default-features = false }
+cross... | 1 | 3 | 3 |
ee8ab91f74d6e598f59947d08405ca1f7fdb2785 | Sebastian Thiel | 2021-04-25T11:59:22 | Revert "Allow most recent version of 'time' crate"
This reverts commit 300aa7b29ff6bad31197368340bebd2e2a5dfea0.
It doesn't actually work!
https://github.com/time-rs/time/issues/293#issuecomment-748151025 | diff --git a/Cargo.toml b/Cargo.toml
index 06410ee..f08fb66 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,6 +8,7 @@ include = ["src/**/*", "README.md", "LICENSE.md", "CHANGELOG.md"]
license = "MIT"
repository = "https://github.com/Byron/prodash"
readme = "README.md"
+resolver = "2"
[lib]
doctest = true
@@ -81,7... | 2 | 4 | 1 |
300aa7b29ff6bad31197368340bebd2e2a5dfea0 | Sebastian Thiel | 2021-04-25T11:56:50 | Allow most recent version of 'time' crate
The issue is now fixed.
https://github.com/time-rs/time/issues/293 | diff --git a/Cargo.toml b/Cargo.toml
index f08fb66..06410ee 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,7 +8,6 @@ include = ["src/**/*", "README.md", "LICENSE.md", "CHANGELOG.md"]
license = "MIT"
repository = "https://github.com/Byron/prodash"
readme = "README.md"
-resolver = "2"
[lib]
doctest = true
@@ -82,8... | 2 | 1 | 4 |
d48f3b97643cbd3a264400cacff29eb1436cb002 | Sebastian Thiel | 2021-03-30T11:33:55 | Fix compile warning | diff --git a/benches/usage.rs b/benches/usage.rs
index ef5e808..6cf11c8 100644
--- a/benches/usage.rs
+++ b/benches/usage.rs
@@ -9,7 +9,7 @@ fn usage(c: &mut Criterion) {
message_buffer_capacity: 2,
}
.create()
- };
+ }
c.benchmark_group("Tree::add_child")
.throughput(... | 1 | 1 | 1 |
ad03a43056351899b8b76a62b0a0598b83c1e213 | Sebastian Thiel | 2021-03-25T16:16:26 | Use new resolver | diff --git a/Cargo.toml b/Cargo.toml
index e37c39c..f08fb66 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,6 +8,7 @@ include = ["src/**/*", "README.md", "LICENSE.md", "CHANGELOG.md"]
license = "MIT"
repository = "https://github.com/Byron/prodash"
readme = "README.md"
+resolver = "2"
[lib]
doctest = true
diff --g... | 2 | 2 | 0 |
4cb8681f3826994d92b703cc7cf105ccf01cc4d8 | Sebastian Thiel | 2021-03-25T16:13:49 | Fix compile warnings | diff --git a/src/progress/key.rs b/src/progress/key.rs
index 85eac46..e08bbb9 100644
--- a/src/progress/key.rs
+++ b/src/progress/key.rs
@@ -187,7 +187,7 @@ impl Key {
}
})
.map(|(idx, _)| idx)
- };
+ }
let upward_iter = |from: usize, key: ... | 1 | 1 | 1 |
75f311e5da2b5aeff608048d13075acb3dd41a0e | Sebastian Thiel | 2021-01-13T02:06:01 | Fix typo | diff --git a/src/unit/display.rs b/src/unit/display.rs
index 6b15d40..dd83905 100644
--- a/src/unit/display.rs
+++ b/src/unit/display.rs
@@ -4,7 +4,7 @@ use crate::{
};
use std::fmt::{self, Write};
-/// The location at which [`Thoughput`] or [`UnitDisplays`][UnitDisplay] should be placed.
+/// The location at which... | 1 | 1 | 1 |
29e16a4faa4293f160b3294d327d2f7c4083ca2c | Sebastian Thiel | 2021-01-12T11:54:30 | (cargo-release) version 12.0.2 | diff --git a/Cargo.toml b/Cargo.toml
index 15ba299..e37c39c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "prodash"
-version = "12.0.1"
+version = "12.0.2"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "A dashboard for visualizing progress of asynchronous and p... | 1 | 1 | 1 |
473c56048e762ca9976260598005e1508e8d579c | Sebastian Thiel | 2021-01-12T09:35:32 | Add all missing docs to prodash | diff --git a/src/lib.rs b/src/lib.rs
index 01824f6..6fa82ca 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,4 +1,6 @@
-#![deny(unsafe_code)]
+#![forbid(unsafe_code)]
+#![deny(missing_docs)]
+
/*!
Prodash is a dashboard for displaying the progress of concurrent application.
@@ -34,11 +36,13 @@ Please have a look at t... | 19 | 158 | 12 |
e93d00128cf24f63dcc18279bedea81d88732ef4 | Sebastian Thiel | 2021-01-08T14:38:14 | (cargo-release) version 12.0.1 | diff --git a/Cargo.toml b/Cargo.toml
index 37d2852..15ba299 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "prodash"
-version = "12.0.0"
+version = "12.0.1"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "A dashboard for visualizing progress of asynchronous and p... | 1 | 1 | 1 |
fed01f7bccc234534631341706527a47d19a6dfa | Sebastian Thiel | 2021-01-08T14:19:36 | fix time offset calculations which can (and do) indeed fail | diff --git a/src/time.rs b/src/time.rs
index 04b336e..c674178 100644
--- a/src/time.rs
+++ b/src/time.rs
@@ -3,13 +3,13 @@ mod localtime {
use std::time::SystemTime;
pub fn format_now_datetime_seconds() -> String {
- time::OffsetDateTime::try_now_local()
- .expect("time with local time off... | 1 | 3 | 3 |
1bea3cb16136c59bf9654fff16bcfefb1d0fa615 | Sebastian Thiel | 2021-01-08T14:08:21 | Remove previous executor/reactor in favor of async-executor | diff --git a/Cargo.toml b/Cargo.toml
index ae944b8..5d2795e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -102,8 +102,6 @@ futures-util = { version = "0.3.4", default-features = false }
argh = "0.1.3"
futures = "0.3.5"
atty = "0.2.14"
-multitask = "0.2.0"
-parking = "2.0.0"
blocking = "1.0.0"
once_cell = "1.4.0"
as... | 5 | 6 | 71 |
9a8af0fe86246cbc99bd8440529975189e77cc00 | Sebastian Thiel | 2021-01-08T14:04:43 | use new spawn for simple example | diff --git a/Cargo.toml b/Cargo.toml
index c38f9aa..ae944b8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -102,10 +102,12 @@ futures-util = { version = "0.3.4", default-features = false }
argh = "0.1.3"
futures = "0.3.5"
atty = "0.2.14"
-blocking = "1.0.0"
multitask = "0.2.0"
-once_cell = "1.4.0"
parking = "2.0.0"
+... | 3 | 33 | 4 |
1c4930af7e8960a94360f2ac6fdeae48920f7f93 | Sebastian Thiel | 2021-01-08T02:57:26 | upgrade 'rand' | diff --git a/Cargo.toml b/Cargo.toml
index aa04664..c38f9aa 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -95,7 +95,7 @@ compound_duration = { version = "1.2.0", optional = true }
all-features = true
[dev-dependencies]
-rand = "0.7.3"
+rand = "0.8.1"
env_logger = { version = "0.8.2", default-features = false, featur... | 3 | 15 | 12 |
644809a7e40fc3b49116e0dfad718fc4fa850164 | Sebastian Thiel | 2021-01-08T02:55:28 | thanks clippy | diff --git a/src/render/tui/draw/progress.rs b/src/render/tui/draw/progress.rs
index 8546750..214e998 100644
--- a/src/render/tui/draw/progress.rs
+++ b/src/render/tui/draw/progress.rs
@@ -275,7 +275,7 @@ fn add_block_eta(state: progress::State, progress_text: &mut String) {
progress::State::Blocked(reason, ma... | 2 | 5 | 3 |
cec8ab38513db79e588dc633218c565d5634f23f | Sebastian Thiel | 2021-01-08T02:52:29 | Upgrade dashmap and env_logger | diff --git a/Cargo.toml b/Cargo.toml
index d8e5ecf..aa04664 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -63,7 +63,7 @@ localtime = ["time"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-dashmap = { version = "3.4.3", optional = true, default-feature... | 1 | 2 | 2 |
32be1300186fce4d543861b850ca7adf7d8c76e2 | Sebastian Thiel | 2021-01-04T13:44:46 | thanks clippy | diff --git a/src/traits.rs b/src/traits.rs
index 3e5b6f8..10b351f 100644
--- a/src/traits.rs
+++ b/src/traits.rs
@@ -103,7 +103,7 @@ pub trait Progress: Send + 'static {
let mut buf = String::with_capacity(128);
let unit = unit.as_display_value();
let push_unit = |buf: &mut String| {
- ... | 1 | 1 | 1 |
06791b3cf0dd2589985bc1deb82b73e9278ae723 | Sebastian Thiel | 2021-01-04T01:49:43 | upgrade to tui 14 | diff --git a/Cargo.toml b/Cargo.toml
index 165dcec..d8e5ecf 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "prodash"
-version = "11.0.0"
+version = "12.0.0"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "A dashboard for visualizing progress of asynchronous and p... | 1 | 4 | 4 |
169d62d04f50eb1b97e6766eb8e7a8f7878b2aef | Sebastian Thiel | 2021-01-04T01:43:35 | update to tui 14 | diff --git a/crosstermion/Cargo.toml b/crosstermion/Cargo.toml
index 94bfe6d..b9deb93 100644
--- a/crosstermion/Cargo.toml
+++ b/crosstermion/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "crosstermion"
-version = "0.5.0"
+version = "0.6.0"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
description = "The... | 1 | 3 | 3 |
808f7d5983ed9a3165afbd8f59959eca16d4a16a | Sebastian Thiel | 2020-11-15T04:03:28 | upgrade to tui v0.13 | diff --git a/Cargo.toml b/Cargo.toml
index fc77d89..88c2a65 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -71,13 +71,13 @@ log = { version = "0.4.8", optional = true }
# render-tui
tui = { version = "0.13.0", optional = true, default-features = false }
-tui-react = { version = "0.12.0", optional = true }
+tui-react =... | 1 | 2 | 2 |
7684a50e1b94d6f19fa7d2c4d646ff569a51ffbd | Sebastian Thiel | 2020-11-15T02:33:13 | crosstermion now uses tui v0.13 | diff --git a/Cargo.toml b/Cargo.toml
index f450350..fc77d89 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -70,7 +70,7 @@ parking_lot = { version = "0.11.0", optional = true, default-features = false }
log = { version = "0.4.8", optional = true }
# render-tui
-tui = { version = "0.12.0", optional = true, default-featu... | 2 | 4 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.