From d06fb359ea36b095961c1b96348d76a0f830a787 Mon Sep 17 00:00:00 2001 From: Ilya Zlobintsev Date: Sat, 7 Jan 2023 17:11:23 +0200 Subject: [PATCH] use amdgpu-sysfs from git --- Cargo.lock | 1 + lact-daemon/Cargo.toml | 4 +++- lact-schema/Cargo.toml | 4 +++- lact-schema/src/lib.rs | 8 +++----- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 76157dd..cef7ecb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -26,6 +26,7 @@ dependencies = [ [[package]] name = "amdgpu-sysfs" version = "0.7.0" +source = "git+https://github.com/ilya-zlobintsev/amdgpu-sysfs-rs#104890e623a34537c05c0400275ca1a53e489a64" dependencies = [ "enum_dispatch", "serde", diff --git a/lact-daemon/Cargo.toml b/lact-daemon/Cargo.toml index f0bb87c..da64d55 100644 --- a/lact-daemon/Cargo.toml +++ b/lact-daemon/Cargo.toml @@ -6,7 +6,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -amdgpu-sysfs = { path = "../../amdgpu-sysfs-rs", features = ["serde"] } +amdgpu-sysfs = { git = "https://github.com/ilya-zlobintsev/amdgpu-sysfs-rs", features = [ + "serde", +] } anyhow = "1.0" bincode = "1.3" nix = "0.26" diff --git a/lact-schema/Cargo.toml b/lact-schema/Cargo.toml index 413ee7d..57e4c00 100644 --- a/lact-schema/Cargo.toml +++ b/lact-schema/Cargo.toml @@ -4,7 +4,9 @@ version = "0.2.0" edition = "2021" [dependencies] -amdgpu-sysfs = { path = "../../amdgpu-sysfs-rs", features = ["serde"] } +amdgpu-sysfs = { git = "https://github.com/ilya-zlobintsev/amdgpu-sysfs-rs", features = [ + "serde", +] } serde = { version = "1.0", features = ["derive"] } indexmap = { version = "*", features = ["serde"] } diff --git a/lact-schema/src/lib.rs b/lact-schema/src/lib.rs index 7b05f53..aec65a9 100644 --- a/lact-schema/src/lib.rs +++ b/lact-schema/src/lib.rs @@ -4,17 +4,15 @@ mod response; #[cfg(test)] mod tests; -use amdgpu_sysfs::gpu_handle::PowerLevels; -pub use request::Request; -pub use response::Response; - pub use amdgpu_sysfs::{ gpu_handle::{ overdrive::{ClocksTable, ClocksTableGen}, - PerformanceLevel, + PerformanceLevel, PowerLevels, }, hw_mon::Temperature, }; +pub use request::Request; +pub use response::Response; use indexmap::IndexMap; use serde::{Deserialize, Serialize};