Cargo Features
[dependencies]
battery-notify = { version = "0.3.5", default-features = false, features = ["mons", "bluetooth"] }
- default = bluetooth, mons
-
These default features are set whenever
battery-notify
is added without
somewhere in the dependency tree.default-features = false - mons default = once_cell, x11rb
-
Affects
monitors::get_nr_connected
… - bluetooth default = once_cell, zbus
-
Affects
bluetooth::get_battery_levels
…
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.