You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -33,8 +33,6 @@ This crate comes with various cargo features to tailor it to your needs.
33
33
* If set, timestamps in the message pane of the `render-tui` will be using the local time, not UTC
34
34
* If set, timestamps of the log messages of the `render-line` will be using the local time, not UTC
35
35
* Has no effect without the `render-tui` or `render-line` respectively
36
-
***On Unix** one needs to provide flags to rustc when building the binary to acknowledge potential unsoundness: `RUSTFLAGS="--cfg unsound_local_offset" cargo build`
37
-
will do the job, but there are [other ways](https://doc.rust-lang.org/cargo/reference/config.html#hierarchical-structure) to do that as well.
38
36
***render-line**
39
37
* Provide a minimal line-based progress renderer which can be limited to a subset of the progress hierarchy.
40
38
* It's like the render-tui, but with far less dependencies and less visual fidelity - all it needs is to move
@@ -50,7 +48,7 @@ This crate comes with various cargo features to tailor it to your needs.
50
48
* If enabled, calls to `render::line::Options::auto_configure()` will configure the display based on whether or not we are in a terminal
51
49
and set its color mode based on what's possible or desired.
52
50
***signal-hook**
53
-
* If set, and the `hide_cursor` line renderer option is set, the cursor will be hidden **and***SIG_INT* and *SIG_TERM* handlers will be
51
+
* If set, and the `hide_cursor` line renderer option is set, the cursor will be hidden **and***SIG_INT* and *SIG_TERM* handlers will be
54
52
installed to reset the cursor on exit. Otherwise you have to make sure to call `shutdown_and_wait()` on the `JoinHandle` returned
55
53
to give the renderer a chance to undo the terminal changes. Failing to do so will leave the cusor hidden once the program has already
56
54
finished.
@@ -65,7 +63,7 @@ This crate comes with various cargo features to tailor it to your needs.
65
63
* Works everywhere natively, but has more dependencies
66
64
* You can set additional features like this `cargo build --features render-tui-crossterm,crossterm/event-stream`
67
65
***render-tui-termion**
68
-
* Use the `termion` crate as terminal backend
66
+
* Use the `termion` crate as terminal backend
69
67
* It has less dependencies but works only on `unix` systems
70
68
* to get this, disable default features and chose at least `render-tui` and `render-tui-termion`.
71
69
***unit-bytes**
@@ -89,7 +87,7 @@ This crate comes with various cargo features to tailor it to your needs.
89
87
* The underlying sync data structure, `dashmap`, does not document every use of unsafe
90
88
* I also evaluated `evmap`, which has 25% less uses of unsafe, but a more complex interface.
91
89
* Thus far it seemed 'ok' to use, who knows… we are getting mutable pieces of a hashmap from multiple threads,
92
-
however, we never hand out multiple handles to the same child which should make actual concurrent access to
90
+
however, we never hand out multiple handles to the same child which should make actual concurrent access to
93
91
the same key impossible.
94
92
* If there are more than 2^16 tasks
95
93
* then
@@ -107,7 +105,7 @@ This crate comes with various cargo features to tailor it to your needs.
107
105
* trying to draw beyond the terminal boundary will add a line break automatically, which can cause unexpected overdraw.
108
106
***fix**
109
107
* count amount of blocks drawn, without ansi codes, and stop drawing at the boundary.
110
-
108
+
111
109
## Lessons Learned
112
110
113
111
*`drop()` is not garantueed to be called when the future returns Ready and is in the futures::executor::ThreadPool
0 commit comments