Cargo Features
[dependencies]
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 wheneveryansi
is added without
somewhere in the dependency tree.default-features = false - std default detect-env? detect-tty? hyperlink? = alloc
- alloc std
- detect-tty = is-terminal, std
- detect-env = std
-
Affects
condition::env_set_or
… - hyperlink = std
-
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.