Cargo Features

owo-colors has no features set by default.

[dependencies]
owo-colors = { version = "4.1.0", features = ["supports-colors", "alloc"] }
supports-colors = supports-color

Enable conversions from all versions of supports-color, but only use the latest to determine if colors are actually supported.

Don't use dep:supports-color because it's possible there's a broken crate in the wild which uses the nonfunctional "supports-color" feature.

Enables supports-color ^2.0

Affects owo-colors::OwoColorize.if_supports_color, owo-colors::colored.control, overrides::with_override, overrides::set_override, overrides::unset_override, supports_colors::SupportsColorsDisplay

alloc

Affects styled_list::StyledVec

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.

supports-color supports-colors?