diff options
Diffstat (limited to 'src/app/data_harvester/batteries.rs')
-rw-r--r-- | src/app/data_harvester/batteries.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/app/data_harvester/batteries.rs b/src/app/data_harvester/batteries.rs new file mode 100644 index 00000000..8c0e4a92 --- /dev/null +++ b/src/app/data_harvester/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::*; + } +} |