mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2025-02-25 18:55:26 -06:00
chore: bump version, update tests
This commit is contained in:
parent
4cec8e1456
commit
1292f3f318
12
Cargo.lock
generated
12
Cargo.lock
generated
@ -1279,7 +1279,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lact"
|
name = "lact"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"lact-cli",
|
"lact-cli",
|
||||||
@ -1290,7 +1290,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lact-cli"
|
name = "lact-cli"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"lact-client",
|
"lact-client",
|
||||||
@ -1300,7 +1300,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lact-client"
|
name = "lact-client"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"amdgpu-sysfs",
|
"amdgpu-sysfs",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
@ -1315,7 +1315,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lact-daemon"
|
name = "lact-daemon"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"amdgpu-sysfs",
|
"amdgpu-sysfs",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
@ -1352,7 +1352,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lact-gui"
|
name = "lact-gui"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"amdgpu-sysfs",
|
"amdgpu-sysfs",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
@ -1376,7 +1376,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "lact-schema"
|
name = "lact-schema"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"amdgpu-sysfs",
|
"amdgpu-sysfs",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "lact-cli"
|
name = "lact-cli"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "lact-client"
|
name = "lact-client"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "lact-daemon"
|
name = "lact-daemon"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
@ -20,6 +20,11 @@ expression: device_info
|
|||||||
"info": {
|
"info": {
|
||||||
"driver": "i915",
|
"driver": "i915",
|
||||||
"drm_info": {
|
"drm_info": {
|
||||||
|
"memory_info": {
|
||||||
|
"cpu_accessible_total": 0,
|
||||||
|
"cpu_accessible_used": 0,
|
||||||
|
"resizeable_bar": true
|
||||||
|
},
|
||||||
"vram_clock_ratio": 1.0
|
"vram_clock_ratio": 1.0
|
||||||
},
|
},
|
||||||
"link_info": {},
|
"link_info": {},
|
||||||
|
@ -20,6 +20,11 @@ expression: device_info
|
|||||||
"info": {
|
"info": {
|
||||||
"driver": "xe",
|
"driver": "xe",
|
||||||
"drm_info": {
|
"drm_info": {
|
||||||
|
"memory_info": {
|
||||||
|
"cpu_accessible_total": 0,
|
||||||
|
"cpu_accessible_used": 0,
|
||||||
|
"resizeable_bar": true
|
||||||
|
},
|
||||||
"vram_clock_ratio": 1.0
|
"vram_clock_ratio": 1.0
|
||||||
},
|
},
|
||||||
"link_info": {},
|
"link_info": {},
|
||||||
|
@ -20,6 +20,11 @@ expression: device_info
|
|||||||
"info": {
|
"info": {
|
||||||
"driver": "i915",
|
"driver": "i915",
|
||||||
"drm_info": {
|
"drm_info": {
|
||||||
|
"memory_info": {
|
||||||
|
"cpu_accessible_total": 0,
|
||||||
|
"cpu_accessible_used": 0,
|
||||||
|
"resizeable_bar": true
|
||||||
|
},
|
||||||
"vram_clock_ratio": 1.0
|
"vram_clock_ratio": 1.0
|
||||||
},
|
},
|
||||||
"link_info": {},
|
"link_info": {},
|
||||||
|
@ -20,6 +20,11 @@ expression: device_info
|
|||||||
"info": {
|
"info": {
|
||||||
"driver": "xe",
|
"driver": "xe",
|
||||||
"drm_info": {
|
"drm_info": {
|
||||||
|
"memory_info": {
|
||||||
|
"cpu_accessible_total": 0,
|
||||||
|
"cpu_accessible_used": 0,
|
||||||
|
"resizeable_bar": true
|
||||||
|
},
|
||||||
"vram_clock_ratio": 1.0
|
"vram_clock_ratio": 1.0
|
||||||
},
|
},
|
||||||
"link_info": {},
|
"link_info": {},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "lact-gui"
|
name = "lact-gui"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
authors = ["Ilya Zlobintsev <ilya.zl@protonmail.com>"]
|
authors = ["Ilya Zlobintsev <ilya.zl@protonmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ tracing-subscriber = { workspace = true }
|
|||||||
chrono = { workspace = true }
|
chrono = { workspace = true }
|
||||||
|
|
||||||
gtk = { version = "0.9", package = "gtk4", features = ["v4_6", "blueprint"] }
|
gtk = { version = "0.9", package = "gtk4", features = ["v4_6", "blueprint"] }
|
||||||
adw = { package = "libadwaita", version = "0.7.0", features = [
|
adw = { package = "libadwaita", version = "0.7.1", features = [
|
||||||
"v1_4",
|
"v1_4",
|
||||||
], optional = true }
|
], optional = true }
|
||||||
relm4 = { version = "0.9.0", default-features = false }
|
relm4 = { version = "0.9.0", default-features = false }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "lact-schema"
|
name = "lact-schema"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
@ -146,3 +146,26 @@ impl fmt::Display for ProfileBase {
|
|||||||
text.fmt(f)
|
text.fmt(f)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use crate::{
|
||||||
|
request::{ClockspeedType, SetClocksCommand},
|
||||||
|
Request,
|
||||||
|
};
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn deserialize_requests() {
|
||||||
|
assert_eq!(
|
||||||
|
Request::SetClocksValue {
|
||||||
|
id: "asd",
|
||||||
|
command: SetClocksCommand {
|
||||||
|
r#type: ClockspeedType::MaxCoreClock,
|
||||||
|
value: Some(2000)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
serde_json::from_str(r#"{"command": "set_clocks_value", "args": {"id": "asd", "command": {"type": "max_core_clock", "value": 2000}}}"#)
|
||||||
|
.unwrap()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "lact"
|
name = "lact"
|
||||||
version = "0.7.0"
|
version = "0.7.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
@ -3,7 +3,7 @@ metadata:
|
|||||||
description: AMDGPU control utility
|
description: AMDGPU control utility
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
license: MIT
|
license: MIT
|
||||||
version: 0.7.0
|
version: 0.7.1
|
||||||
maintainer: ilya-zlobintsev
|
maintainer: ilya-zlobintsev
|
||||||
url: https://github.com/ilya-zlobintsev/lact
|
url: https://github.com/ilya-zlobintsev/lact
|
||||||
source:
|
source:
|
||||||
|
@ -3,7 +3,7 @@ metadata:
|
|||||||
description: AMDGPU control utility
|
description: AMDGPU control utility
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
license: MIT
|
license: MIT
|
||||||
version: 0.7.0
|
version: 0.7.1
|
||||||
maintainer: ilya-zlobintsev
|
maintainer: ilya-zlobintsev
|
||||||
url: https://github.com/ilya-zlobintsev/lact
|
url: https://github.com/ilya-zlobintsev/lact
|
||||||
source:
|
source:
|
||||||
|
@ -3,7 +3,7 @@ metadata:
|
|||||||
description: AMDGPU control utility
|
description: AMDGPU control utility
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
license: MIT
|
license: MIT
|
||||||
version: 0.7.0
|
version: 0.7.1
|
||||||
maintainer: ilya-zlobintsev
|
maintainer: ilya-zlobintsev
|
||||||
url: https://github.com/ilya-zlobintsev/lact
|
url: https://github.com/ilya-zlobintsev/lact
|
||||||
source:
|
source:
|
||||||
|
Loading…
Reference in New Issue
Block a user