Cargo Features

yansi = { version = "1.0.1", default-features = false, features = ["std", "alloc", "detect-tty", "detect-env", "hyperlink"] }
default = std

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

std default detect-env? detect-tty? hyperlink? = alloc
alloc std
detect-tty = is-terminal, std
detect-env = std

Affects condition::env_set_or

Affects yansi::hyperlink

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.

is-terminal detect-tty?