Crates.io | concolor-control |
lib.rs | concolor-control |
version | 0.0.7 |
source | src |
created_at | 2021-08-04 15:15:11.101744 |
updated_at | 2021-10-06 14:57:30.839981 |
description | Control console coloring across all dependencies |
homepage | |
repository | https://github.com/rust-cli/concolor |
max_upload_size | |
id | 431546 |
size | 20,225 |
bin/lib API for managing terminal styling
Features
stdout
/ stderr
TERM
Special note: to be successful, this crate cannot break compatibility or else different crates in the hierarchy will be reading different globals. While end users can work around this, it isn't ideal. Once we hit 1.0, we should strive to keep the API compatible. If we need a new API, we can make the old API an adapter to the new logic.
Similarly, we should strive to reduce risk of breaking compatibility by exposing as little as possible. Anything more should be broken out into a separate crate that this crate can call into.
Prior art for global colors control:
termcolor for identifying various corner cases with environment detection.
firestorm for zero-cost abstraction via bin/lib-specific Cargo.toml
features.
Dual-licensed under MIT or Apache 2.0