Cargo Features

[dependencies]
cargo-foobar = { version = "1.0.2", default-features = false, features = ["foo", "bar", "cli"] }
default = bar, foo

These default features are set whenever cargo-foobar is added without default-features = false somewhere in the dependency tree.

foo default = cli

Required by the cargo-foo binary

bar default = cli

Required by the cargo-bar binary

cli bar foo = atty, structopt

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.

atty cli?
structopt cli?