svartalf / rust-battery

Rust crate providing cross-platform information about the notebook batteries.
https://crates.io/crates/battery
Apache License 2.0
358 stars 40 forks source link

Use MacOS bindings from Servo #2

Closed svartalf closed 5 years ago

svartalf commented 5 years ago

Currently used CoreFoundation-sys and IOKit-sys crates for MacOS build looks abandoned.

  1. CoreFoundation-sys should be replaced with core-foundation crate by Servo team
  2. Manually implemented bindings and idiomatic wrappers should be made instead of IOKit-sys, similar to those in core-foundation-sys and core-foundation