2022-08-10 01:56:22 +01:00
|
|
|
mod battery;
|
2022-07-30 21:33:31 +01:00
|
|
|
mod cpu;
|
2022-08-10 01:56:22 +01:00
|
|
|
mod error;
|
2022-07-30 21:33:31 +01:00
|
|
|
mod general;
|
|
|
|
mod gpu;
|
2022-08-10 01:56:22 +01:00
|
|
|
mod min_max;
|
|
|
|
mod traits;
|
2022-07-30 21:33:31 +01:00
|
|
|
|
2022-08-10 01:56:22 +01:00
|
|
|
pub use battery::Battery;
|
2022-07-30 21:33:31 +01:00
|
|
|
pub use cpu::Cpu;
|
2022-08-10 01:56:22 +01:00
|
|
|
pub use general::{SettingVariant, Settings};
|
2022-07-30 21:33:31 +01:00
|
|
|
pub use gpu::Gpu;
|
2022-08-10 01:56:22 +01:00
|
|
|
pub use min_max::MinMax;
|
|
|
|
|
|
|
|
pub use error::SettingError;
|
|
|
|
pub use traits::{OnResume, OnSet, SettingsRange};
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests {
|
|
|
|
#[test]
|
|
|
|
fn system_defaults_test() {
|
|
|
|
let settings = super::Settings::system_default("idc".into());
|
|
|
|
println!("Loaded system settings: {:?}", settings);
|
|
|
|
}
|
|
|
|
}
|