[lib] battery: cross-platform information about batteries


#1

I’m happy to announce battery crate — cross-platform library for reading batteries information.

Right now it supports Linux, Mac OS, Windows, FreeBSD and DragonFlyBSD.

Here is an example what data you can fetch on these platforms (made with the assistant crate battery-cli):

Check out GitHub repo, documentation or my blog post with additional details.


#2

Very cool, thanks also for that blog-post.

In the docs your link to the cli crate on crates.io is broken, btw :slight_smile:


#3

Thanks and fixed! :slight_smile: