2022-12-03 02:12:13 +00:00
|
|
|
mod detect;
|
2022-11-19 20:21:09 +00:00
|
|
|
pub mod driver;
|
2022-08-10 01:56:22 +01:00
|
|
|
mod error;
|
2022-07-30 21:33:31 +01:00
|
|
|
mod general;
|
2022-08-10 01:56:22 +01:00
|
|
|
mod min_max;
|
|
|
|
mod traits;
|
2023-01-06 02:35:53 +00:00
|
|
|
mod util;
|
2022-07-30 21:33:31 +01:00
|
|
|
|
2022-11-29 00:31:01 +00:00
|
|
|
pub mod generic;
|
2022-12-31 21:28:37 +00:00
|
|
|
pub mod generic_amd;
|
2022-11-19 20:21:09 +00:00
|
|
|
pub mod steam_deck;
|
|
|
|
pub mod unknown;
|
|
|
|
|
2022-12-03 02:12:13 +00:00
|
|
|
pub use detect::{auto_detect0, auto_detect_provider, limits_worker::spawn as limits_worker_spawn};
|
2022-11-19 20:21:09 +00:00
|
|
|
pub use driver::Driver;
|
2022-08-26 22:00:43 +01:00
|
|
|
pub use general::{SettingVariant, Settings, General};
|
2022-12-31 21:28:37 +00:00
|
|
|
pub use min_max::{MinMax, min_max_from_json};
|
2022-08-10 01:56:22 +01:00
|
|
|
|
|
|
|
pub use error::SettingError;
|
2022-11-19 20:21:09 +00:00
|
|
|
pub use traits::{OnResume, OnSet, SettingsRange, TGeneral, TGpu, TCpus, TBattery, TCpu};
|
2022-08-10 01:56:22 +01:00
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod tests {
|
|
|
|
#[test]
|
|
|
|
fn system_defaults_test() {
|
|
|
|
let settings = super::Settings::system_default("idc".into());
|
|
|
|
println!("Loaded system settings: {:?}", settings);
|
|
|
|
}
|
|
|
|
}
|