summaryrefslogtreecommitdiffstats
path: root/src/data_collection/batteries.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/data_collection/batteries.rs')
-rw-r--r--src/data_collection/batteries.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/data_collection/batteries.rs b/src/data_collection/batteries.rs
new file mode 100644
index 00000000..8c0e4a92
--- /dev/null
+++ b/src/data_collection/batteries.rs
@@ -0,0 +1,10 @@
+//! Data collection for batteries.
+//!
+//! For Linux, macOS, Windows, FreeBSD, Dragonfly, and iOS, this is handled by the battery crate.
+
+cfg_if::cfg_if! {
+ if #[cfg(any(target_os = "windows", target_os = "macos", target_os = "linux", target_os = "freebsd", target_os = "dragonfly", target_os = "ios"))] {
+ pub mod battery;
+ pub use self::battery::*;
+ }
+}