battery 0.5.0

Cross-platform information about batteries


Latest Version Latest Version Build Status dependency status Apache 2.0 OR MIT licensed

Rust crate providing cross-platform information about batteries.

Gives access to a system independent battery state, capacity, charge and voltage values recalculated as necessary to be returned in mW, mWh or mV units.

Supported platforms

  • Linux 2.6.39+
  • MacOS (10.10+ probably, needs to be confirmed)
  • Windows 7+

API stability

Until 1.0.0 version API might change in any moment, be careful.


See battery-cli crate at GitHub or at