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]]
|
||||
name = "lact"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"lact-cli",
|
||||
@ -1290,7 +1290,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lact-cli"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"lact-client",
|
||||
@ -1300,7 +1300,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lact-client"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
dependencies = [
|
||||
"amdgpu-sysfs",
|
||||
"anyhow",
|
||||
@ -1315,7 +1315,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lact-daemon"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
dependencies = [
|
||||
"amdgpu-sysfs",
|
||||
"anyhow",
|
||||
@ -1352,7 +1352,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lact-gui"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
dependencies = [
|
||||
"amdgpu-sysfs",
|
||||
"anyhow",
|
||||
@ -1376,7 +1376,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "lact-schema"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
dependencies = [
|
||||
"amdgpu-sysfs",
|
||||
"anyhow",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "lact-cli"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "lact-client"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "lact-daemon"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
edition = "2021"
|
||||
|
||||
[features]
|
||||
|
@ -20,6 +20,11 @@ expression: device_info
|
||||
"info": {
|
||||
"driver": "i915",
|
||||
"drm_info": {
|
||||
"memory_info": {
|
||||
"cpu_accessible_total": 0,
|
||||
"cpu_accessible_used": 0,
|
||||
"resizeable_bar": true
|
||||
},
|
||||
"vram_clock_ratio": 1.0
|
||||
},
|
||||
"link_info": {},
|
||||
|
@ -20,6 +20,11 @@ expression: device_info
|
||||
"info": {
|
||||
"driver": "xe",
|
||||
"drm_info": {
|
||||
"memory_info": {
|
||||
"cpu_accessible_total": 0,
|
||||
"cpu_accessible_used": 0,
|
||||
"resizeable_bar": true
|
||||
},
|
||||
"vram_clock_ratio": 1.0
|
||||
},
|
||||
"link_info": {},
|
||||
|
@ -20,6 +20,11 @@ expression: device_info
|
||||
"info": {
|
||||
"driver": "i915",
|
||||
"drm_info": {
|
||||
"memory_info": {
|
||||
"cpu_accessible_total": 0,
|
||||
"cpu_accessible_used": 0,
|
||||
"resizeable_bar": true
|
||||
},
|
||||
"vram_clock_ratio": 1.0
|
||||
},
|
||||
"link_info": {},
|
||||
|
@ -20,6 +20,11 @@ expression: device_info
|
||||
"info": {
|
||||
"driver": "xe",
|
||||
"drm_info": {
|
||||
"memory_info": {
|
||||
"cpu_accessible_total": 0,
|
||||
"cpu_accessible_used": 0,
|
||||
"resizeable_bar": true
|
||||
},
|
||||
"vram_clock_ratio": 1.0
|
||||
},
|
||||
"link_info": {},
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "lact-gui"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
authors = ["Ilya Zlobintsev <ilya.zl@protonmail.com>"]
|
||||
edition = "2021"
|
||||
|
||||
@ -21,7 +21,7 @@ tracing-subscriber = { workspace = true }
|
||||
chrono = { workspace = true }
|
||||
|
||||
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",
|
||||
], optional = true }
|
||||
relm4 = { version = "0.9.0", default-features = false }
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "lact-schema"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
edition = "2021"
|
||||
|
||||
[features]
|
||||
|
@ -146,3 +146,26 @@ impl fmt::Display for ProfileBase {
|
||||
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]
|
||||
name = "lact"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
edition = "2021"
|
||||
|
||||
[features]
|
||||
|
@ -3,7 +3,7 @@ metadata:
|
||||
description: AMDGPU control utility
|
||||
arch: x86_64
|
||||
license: MIT
|
||||
version: 0.7.0
|
||||
version: 0.7.1
|
||||
maintainer: ilya-zlobintsev
|
||||
url: https://github.com/ilya-zlobintsev/lact
|
||||
source:
|
||||
|
@ -3,7 +3,7 @@ metadata:
|
||||
description: AMDGPU control utility
|
||||
arch: x86_64
|
||||
license: MIT
|
||||
version: 0.7.0
|
||||
version: 0.7.1
|
||||
maintainer: ilya-zlobintsev
|
||||
url: https://github.com/ilya-zlobintsev/lact
|
||||
source:
|
||||
|
@ -3,7 +3,7 @@ metadata:
|
||||
description: AMDGPU control utility
|
||||
arch: x86_64
|
||||
license: MIT
|
||||
version: 0.7.0
|
||||
version: 0.7.1
|
||||
maintainer: ilya-zlobintsev
|
||||
url: https://github.com/ilya-zlobintsev/lact
|
||||
source:
|
||||
|
Loading…
Reference in New Issue
Block a user