Cargo Features

[dependencies]
ansi_colours = { version = "1.2.3", default-features = false, features = ["ansi_term", "anstyle", "termcolor", "rgb"] }
default = rgb

The rgb feature is set by default whenever ansi_colours is added without default-features = false somewhere in the dependency tree.

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.

ansi_term implicit feature

Enables ansi_term

ansi_term:

Library for ANSI terminal colours and styles (bold, underline)

anstyle implicit feature

Enables anstyle

anstyle:

ANSI text styling

termcolor implicit feature

Enables termcolor >=1.0, <=1.2

termcolor:

A simple cross platform library for writing colored text to a terminal

rgb default