Cargo Features
[dependencies]
cnx-contrib = { version = "0.1.0", default-features = false, features = ["volume", "wireless"] }
- default = volume
-
The
volume
feature is set by default whenevercnx-contrib
is added without
somewhere in the dependency tree.default-features = false - volume default = alsa, sioctl
- wireless = iwlib
-
Affects
widgets::wireless
…
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.
- iwlib wireless?
- alsa volume
-
Enables alsa ^0.5.0
- sioctl openbsd volume
-
Enables sioctl ^0.0.1