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-11-13 04:17:13 +00:00
|
|
|
pub use cpu::{Cpu, Cpus};
|
2022-08-26 22:00:43 +01:00
|
|
|
pub use general::{SettingVariant, Settings, General};
|
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);
|
|
|
|
}
|
|
|
|
}
|