Remove typeshare use

This commit is contained in:
Luke D. Jones
2025-01-03 16:37:22 +13:00
parent 1d9e89ef3d
commit 2b7a2a5be3
24 changed files with 0 additions and 124 deletions

View File

@@ -15,6 +15,5 @@ zbus.workspace = true
concat-idents.workspace = true
udev.workspace = true
inotify.workspace = true
typeshare.workspace = true
rusb.workspace = true

View File

@@ -2,7 +2,6 @@ use std::path::PathBuf;
use log::{info, warn};
use serde::{Deserialize, Serialize};
use typeshare::typeshare;
use zbus::zvariant::{OwnedValue, Type, Value};
use crate::error::{PlatformError, Result};
@@ -147,7 +146,6 @@ impl CPUControl {
}
}
#[typeshare]
#[repr(u8)]
#[derive(
Deserialize, Serialize, Type, Value, OwnedValue, Debug, PartialEq, PartialOrd, Clone, Copy,
@@ -179,7 +177,6 @@ impl From<CPUGovernor> for String {
}
}
#[typeshare]
#[repr(u32)]
#[derive(
Deserialize,

View File

@@ -3,7 +3,6 @@ use std::io::{Read, Write};
use std::path::{Path, PathBuf};
use serde::{Deserialize, Serialize};
use typeshare::typeshare;
use zbus::zvariant::{OwnedValue, Type, Value};
use crate::error::PlatformError;
@@ -252,7 +251,6 @@ define_attribute_getters!(
);
/// CamelCase names of the properties. Intended for use with DBUS
#[typeshare]
#[repr(u8)]
#[derive(Clone, Copy, Serialize, Deserialize, Type, Value, OwnedValue, PartialEq, PartialOrd)]
#[zvariant(signature = "s")]

View File

@@ -4,7 +4,6 @@ use std::str::FromStr;
use log::{info, warn};
use serde::{Deserialize, Serialize};
use typeshare::typeshare;
use zbus::zvariant::{OwnedValue, Type, Value};
use crate::error::{PlatformError, Result};
@@ -148,7 +147,6 @@ impl Default for RogPlatform {
}
}
#[typeshare]
#[repr(u8)]
#[derive(
Serialize, Deserialize, Default, Type, Value, OwnedValue, Debug, PartialEq, Eq, Clone, Copy,
@@ -245,7 +243,6 @@ impl Display for GpuMode {
}
}
#[typeshare]
#[repr(u32)]
#[derive(
Deserialize,
@@ -352,7 +349,6 @@ impl Display for ThrottlePolicy {
}
/// CamelCase names of the properties. Intended for use with DBUS
#[typeshare]
#[repr(u8)]
#[derive(Debug, Clone, Copy, Serialize, Deserialize, Type, PartialEq, PartialOrd)]
#[zvariant(signature = "s")]