Cargo Features

[dependencies]
lib-hello = { version = "0.3.0", default-features = false, features = ["greeting", "farewell", "communication"] }
default = communication

The communication feature is set by default whenever lib-hello is added without default-features = false somewhere in the dependency tree.

greeting communication

Affects lib-hello::saying_hello

farewell communication

Affects lib-hello::saying_bye

communication default = farewell, greeting

Affects lib-hello::hello_and_bye