Cargo Features
[dependencies]
termprogress = { version = "0.10.0", default-features = false, features = ["size", "reactive"] }
- default = size
-
The
size
feature is set by default whenevertermprogress
is added without
somewhere in the dependency tree.default-features = false - size default = terminal_size
-
Use terminal size when drawing bars.
Affects
termprogress::has_terminal_output_default
,termprogress::has_terminal_output
… - reactive
-
React to
SIGWINCH
whenstdout
is a terminal (linux only.)
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- terminal_size size
-
Enables terminal_size ^0.1