Update to ryzenadj alt for v0.14.0

This commit is contained in:
NGnius (Graham) 2024-04-01 10:04:02 -04:00
parent f9e384d50c
commit b100b1f2f2
3 changed files with 17 additions and 14 deletions

19
backend/Cargo.lock generated
View file

@ -891,22 +891,22 @@ dependencies = [
]
[[package]]
name = "libryzenadj"
version = "0.13.0"
name = "libryzenadj-alt"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c5bccdf07c3234c06c435648a53d8cb369f76d20e03bb8d2f8c24fb2330efc32"
checksum = "f0a8cc66a7f77b864c2ef014dd9f9a3b03305d9e7f130202ca4addde9bc71f8b"
dependencies = [
"errno",
"libryzenadj-sys",
"libryzenadj-sys-alt",
"num_enum",
"thiserror",
]
[[package]]
name = "libryzenadj-sys"
version = "0.13.0"
name = "libryzenadj-sys-alt"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1de3621be974e892e12d4a07a6a2e32b6a05950759b062d94f5b54f78fabc3a"
checksum = "cb9de62ac92216770e51b5fa0628c22246a23c948e006f4ee65f6b96f6e0dd35"
dependencies = [
"bindgen",
"cmake",
@ -1177,7 +1177,7 @@ dependencies = [
"clap",
"community_settings_core",
"libc",
"libryzenadj",
"libryzenadj-alt",
"limits_core",
"log",
"regex",
@ -1282,6 +1282,7 @@ dependencies = [
name = "regex-automata"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f"
dependencies = [
"aho-corasick",
"memchr",
@ -1481,6 +1482,8 @@ dependencies = [
[[package]]
name = "smokepatio"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "626ef8beee78bebc397d841469fa47bf7e370ddb8b8f3e628e69b03bf968d089"
dependencies = [
"embedded-io",
"log",

View file

@ -31,7 +31,7 @@ limits_core = { version = "3", path = "./limits_core" }
regex = "1"
# steam deck libs
smokepatio = { version = "0.1", features = [ "std" ], path = "../../smokepatio" }
smokepatio = { version = "0.1", features = [ "std" ] }
libc = "0.2"
# online settings
@ -40,7 +40,7 @@ chrono = { version = "0.4", features = [ "serde" ] }
# hardware enablement
#libryzenadj = { version = "0.14", path = "../../libryzenadj-rs-14" }
libryzenadj = { version = "0.13" }
libryzenadj-alt = { version = "0.14" }
# ureq's tls feature does not like musl targets
ureq = { version = "2", features = ["json", "gzip", "brotli", "charset", "tls"], default-features = false, optional = true }

View file

@ -1,4 +1,4 @@
use libryzenadj::RyzenAdj;
use libryzenadj_alt::RyzenAdj;
use std::sync::Mutex;
use crate::persist::GpuJson;
@ -22,9 +22,9 @@ fn msg_or_err<D: std::fmt::Display, E: std::fmt::Display>(
fn log_capabilities(ryzenadj: &RyzenAdj) {
log::info!(
"RyzenAdj v{}.{}.{}",
libryzenadj::libryzenadj_sys::RYZENADJ_REVISION_VER,
libryzenadj::libryzenadj_sys::RYZENADJ_MAJOR_VER,
libryzenadj::libryzenadj_sys::RYZENADJ_MINIOR_VER
libryzenadj_alt::libryzenadj_sys::RYZENADJ_REVISION_VER,
libryzenadj_alt::libryzenadj_sys::RYZENADJ_MAJOR_VER,
libryzenadj_alt::libryzenadj_sys::RYZENADJ_MINIOR_VER
);
#[cfg(feature = "experimental")]
if let Some(x) = ryzenadj.get_init_table_err() {