Cargo Features

fyi_msg has no features set by default.

[dependencies]
fyi_msg = { version = "1.6.1", features = ["fitted", "timestamps", "progress", "signals_sigwinch", "signals_sigint", "signals", "bin_kinds"] }
default

This library's features are opt-in.

fitted progress? = unicode-width

Add width-fitting support to the Msg struct, i.e. Msg.fitted().

timestamps = utc2k

Add timestamp support to the Msg struct.

Affects msg::FLAG_TIMESTAMP

progress signals_sigint? signals_sigwinch? = fitted, terminal_size

Enable the Progless struct, a Msg-like progress bar.

signals_sigwinch signals? = progress, signal-hook

ADVANCED: Add SIGWINCH signal support to the Progless struct, reducing resize-related latency.

NOT recommended for general use.

signals_sigint signals? = progress, signal-hook

ADVANCED: Add SIGINT signal support to the Progless struct, allowing some quick cleanup/restoration to be sneaked in before premature termination.
(This makes possible subtle UI improvements like hiding the cursor during
progress render.)

This necessarily replaces the default SIGINT-handling behaviors, so should NOT be used in projects that implement their own handling.

NOT recommended for general use.

signals = signals_sigint, signals_sigwinch

ADVANCED: Enable all signal features.

NOT recommended for general use.

bin_kinds

INTERNAL: used by the accompanying "fyi" binary.

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 progress?
unicode-width fitted?
utc2k timestamps?
signal-hook signals_sigint? signals_sigwinch?