diff --git a/CHANGELOG.md b/CHANGELOG.md index 62482c5c..649a59bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## [Unreleased] +### Changed +- Renamed `Strobe` effect to `RainbowCycle` to prevent confusion over what it is +- Ranamed `Rainbow` effect to `RainbowWave` +- Cleaned up serde crate deps + ## [v6.0.10] ### Added diff --git a/Cargo.lock b/Cargo.lock index d4f6b941..65c35ecd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -165,7 +165,6 @@ dependencies = [ "rog_profiles", "rog_slash", "serde", - "serde_derive", "tokio", "udev 0.8.0", "zbus", @@ -185,7 +184,6 @@ dependencies = [ "rog_platform", "ron", "serde", - "serde_derive", "smol", "zbus", ] @@ -3694,7 +3692,6 @@ dependencies = [ "rog_platform", "rog_profiles", "serde", - "serde_derive", "slint", "slint-build", "supergfxctl", @@ -3716,7 +3713,6 @@ dependencies = [ "pix", "png_pong", "serde", - "serde_derive", "typeshare", "zbus", ] @@ -3730,7 +3726,6 @@ dependencies = [ "log", "ron", "serde", - "serde_derive", "typeshare", "zbus", ] @@ -3772,7 +3767,6 @@ dependencies = [ "log", "rog_platform", "serde", - "serde_derive", "typeshare", "udev 0.8.0", "zbus", @@ -3795,7 +3789,6 @@ dependencies = [ "cargo-husky", "dmi_id", "serde", - "serde_derive", "typeshare", "zbus", ] diff --git a/Cargo.toml b/Cargo.toml index 159dc5d2..52f8da31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,8 +50,7 @@ mio = "0.8.11" zbus = "4.2" logind-zbus = { version = "4.0.3" } #, default-features = false, features = ["non_blocking"] } -serde = "^1.0" -serde_derive = "^1.0" +serde = { version = "^1.0", features = ["serde_derive"] } ron = "*" typeshare = "1.0.0" diff --git a/asusctl/src/aura_cli.rs b/asusctl/src/aura_cli.rs index 29f3d2f1..4cf41d25 100644 --- a/asusctl/src/aura_cli.rs +++ b/asusctl/src/aura_cli.rs @@ -219,9 +219,9 @@ pub enum SetAuraBuiltin { #[options(help = "pulse between one or two colours")] Breathe(TwoColourSpeed), // 1 #[options(help = "strobe through all colours")] - Strobe(SingleSpeed), // 2 + RainbowCycle(SingleSpeed), // 2 #[options(help = "rainbow cycling in one of four directions")] - Rainbow(SingleSpeedDirection), // 3 + RainbowWave(SingleSpeedDirection), // 3 #[options(help = "rain pattern mimicking raindrops")] Stars(TwoColourSpeed), // 4 #[options(help = "rain pattern of three preset colours")] @@ -312,14 +312,14 @@ impl From<&SetAuraBuiltin> for AuraEffect { data.mode = AuraModeNum::Breathe; data } - SetAuraBuiltin::Strobe(x) => { + SetAuraBuiltin::RainbowCycle(x) => { let mut data: AuraEffect = x.into(); - data.mode = AuraModeNum::Strobe; + data.mode = AuraModeNum::RainbowCycle; data } - SetAuraBuiltin::Rainbow(x) => { + SetAuraBuiltin::RainbowWave(x) => { let mut data: AuraEffect = x.into(); - data.mode = AuraModeNum::Rainbow; + data.mode = AuraModeNum::RainbowWave; data } SetAuraBuiltin::Stars(x) => { diff --git a/asusd-user/Cargo.toml b/asusd-user/Cargo.toml index 70777d50..61839b1c 100644 --- a/asusd-user/Cargo.toml +++ b/asusd-user/Cargo.toml @@ -22,7 +22,6 @@ smol.workspace = true # serialisation serde.workspace = true -serde_derive.workspace = true ron.workspace = true rog_anime = { path = "../rog-anime" } diff --git a/asusd-user/src/config.rs b/asusd-user/src/config.rs index 5aca5886..36b55478 100644 --- a/asusd-user/src/config.rs +++ b/asusd-user/src/config.rs @@ -6,7 +6,7 @@ use rog_anime::{ActionLoader, AnimTime, AnimeType, Fade, Sequences as AnimeSeque use rog_aura::effects::{AdvancedEffects as AuraSequences, Breathe, DoomFlicker, Effect, Static}; use rog_aura::keyboard::LedCode; use rog_aura::{Colour, Speed}; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use crate::error::Error; diff --git a/asusd-user/src/ctrl_anime.rs b/asusd-user/src/ctrl_anime.rs index 0fd2b718..ab3e1575 100644 --- a/asusd-user/src/ctrl_anime.rs +++ b/asusd-user/src/ctrl_anime.rs @@ -9,7 +9,7 @@ use rog_anime::error::AnimeError; use rog_anime::{ActionData, ActionLoader, AnimTime, Fade, Sequences, Vec2}; use rog_dbus::zbus_anime::AnimeProxyBlocking; use ron::ser::PrettyConfig; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use zbus::interface; use zbus::zvariant::{ObjectPath, Type}; diff --git a/asusd/Cargo.toml b/asusd/Cargo.toml index 66a6c483..2153dd91 100644 --- a/asusd/Cargo.toml +++ b/asusd/Cargo.toml @@ -38,7 +38,6 @@ logind-zbus.workspace = true # serialisation serde.workspace = true -serde_derive.workspace = true concat-idents.workspace = true diff --git a/asusd/src/config.rs b/asusd/src/config.rs index 7e116277..33d20989 100644 --- a/asusd/src/config.rs +++ b/asusd/src/config.rs @@ -1,7 +1,7 @@ use config_traits::{StdConfig, StdConfigLoad1}; use rog_platform::cpu::CPUEPP; use rog_platform::platform::ThrottlePolicy; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; const CONFIG_FILE: &str = "asusd.ron"; diff --git a/asusd/src/ctrl_anime/config.rs b/asusd/src/ctrl_anime/config.rs index b3c86a65..38beb326 100644 --- a/asusd/src/ctrl_anime/config.rs +++ b/asusd/src/ctrl_anime/config.rs @@ -6,7 +6,7 @@ use rog_anime::usb::Brightness; use rog_anime::{ ActionData, ActionLoader, AnimTime, Animations, AnimeType, DeviceState, Fade, Vec2, }; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; const CONFIG_FILE: &str = "anime.ron"; diff --git a/asusd/src/ctrl_aura/config.rs b/asusd/src/ctrl_aura/config.rs index f880fd68..b4ac2104 100644 --- a/asusd/src/ctrl_aura/config.rs +++ b/asusd/src/ctrl_aura/config.rs @@ -7,7 +7,7 @@ use rog_aura::keyboard::LaptopAuraPower; use rog_aura::{ AuraDeviceType, AuraEffect, AuraModeNum, AuraZone, Direction, LedBrightness, Speed, GRADIENT, }; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use crate::error::RogError; diff --git a/asusd/src/ctrl_fancurves.rs b/asusd/src/ctrl_fancurves.rs index 21ceb335..9d47d643 100644 --- a/asusd/src/ctrl_fancurves.rs +++ b/asusd/src/ctrl_fancurves.rs @@ -8,7 +8,7 @@ use rog_platform::platform::{RogPlatform, ThrottlePolicy}; use rog_profiles::error::ProfileError; use rog_profiles::fan_curve_set::CurveData; use rog_profiles::{find_fan_curve_node, FanCurvePU, FanCurveProfiles}; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use tokio::sync::Mutex; use zbus::{interface, Connection, SignalContext}; diff --git a/asusd/src/ctrl_slash/config.rs b/asusd/src/ctrl_slash/config.rs index 9af69fe6..2eee7f5c 100644 --- a/asusd/src/ctrl_slash/config.rs +++ b/asusd/src/ctrl_slash/config.rs @@ -1,6 +1,6 @@ use config_traits::{StdConfig, StdConfigLoad}; use rog_slash::{DeviceState, SlashMode}; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; const CONFIG_FILE: &str = "slash.ron"; diff --git a/rog-anime/Cargo.toml b/rog-anime/Cargo.toml index df357ae4..84be38d9 100644 --- a/rog-anime/Cargo.toml +++ b/rog-anime/Cargo.toml @@ -28,7 +28,6 @@ gif.workspace = true log.workspace = true serde.workspace = true -serde_derive.workspace = true glam.workspace = true typeshare.workspace = true diff --git a/rog-anime/src/data.rs b/rog-anime/src/data.rs index 7f9e920e..9b67dc4f 100644 --- a/rog-anime/src/data.rs +++ b/rog-anime/src/data.rs @@ -4,7 +4,7 @@ use std::thread::sleep; use std::time::{Duration, Instant}; use log::info; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use typeshare::typeshare; #[cfg(feature = "dbus")] use zbus::zvariant::{OwnedValue, Type, Value}; diff --git a/rog-anime/src/gif.rs b/rog-anime/src/gif.rs index 3f01db4f..60927b3f 100644 --- a/rog-anime/src/gif.rs +++ b/rog-anime/src/gif.rs @@ -5,7 +5,7 @@ use std::time::Duration; use glam::Vec2; use log::error; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use crate::error::{AnimeError, Result}; use crate::{AnimeDataBuffer, AnimeDiagonal, AnimeImage, AnimeType, Pixel}; diff --git a/rog-anime/src/sequencer.rs b/rog-anime/src/sequencer.rs index 3a6e6eec..443b8375 100644 --- a/rog-anime/src/sequencer.rs +++ b/rog-anime/src/sequencer.rs @@ -3,7 +3,7 @@ use std::path::PathBuf; use std::time::Duration; use glam::Vec2; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use crate::error::Result; use crate::{AnimTime, AnimeDataBuffer, AnimeDiagonal, AnimeGif, AnimeImage, AnimeType}; diff --git a/rog-anime/src/usb.rs b/rog-anime/src/usb.rs index da821c15..0bebea1b 100644 --- a/rog-anime/src/usb.rs +++ b/rog-anime/src/usb.rs @@ -11,7 +11,7 @@ use std::str::FromStr; use dmi_id::DMIID; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use typeshare::typeshare; #[cfg(feature = "dbus")] use zbus::zvariant::{OwnedValue, Type, Value}; diff --git a/rog-aura/Cargo.toml b/rog-aura/Cargo.toml index 083b7e0a..f14eef98 100644 --- a/rog-aura/Cargo.toml +++ b/rog-aura/Cargo.toml @@ -18,7 +18,6 @@ dbus = ["zbus"] [dependencies] serde.workspace = true -serde_derive.workspace = true zbus = { workspace = true, optional = true } dmi_id = { path = "../dmi-id" } diff --git a/rog-aura/data/aura_support.ron b/rog-aura/data/aura_support.ron index 44de7225..8d7aed4e 100644 --- a/rog-aura/data/aura_support.ron +++ b/rog-aura/data/aura_support.ron @@ -3,7 +3,7 @@ device_name: "FA506I", product_id: "", layout_name: "fa506i", - basic_modes: [Static, Breathe, Strobe, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, Pulse], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -12,7 +12,7 @@ device_name: "FA506Q", product_id: "", layout_name: "fa506i", - basic_modes: [Static, Breathe, Strobe, Rainbow], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -21,7 +21,7 @@ device_name: "FA507", product_id: "", layout_name: "fa507", - basic_modes: [Static, Breathe, Strobe, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, Pulse], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -30,7 +30,7 @@ device_name: "FX505", product_id: "", layout_name: "fx505d", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, Pulse], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -39,7 +39,7 @@ device_name: "FX506", product_id: "", layout_name: "fa506i", - basic_modes: [Static, Breathe, Strobe, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, Pulse], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -48,7 +48,7 @@ device_name: "FX507Z", product_id: "", layout_name: "fa506i", - basic_modes: [Static, Breathe, Strobe, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, Pulse], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -57,7 +57,7 @@ device_name: "FX516P", product_id: "", layout_name: "fa506i", - basic_modes: [Static, Breathe, Strobe], + basic_modes: [Static, Breathe, RainbowCycle], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -66,7 +66,7 @@ device_name: "FX705D", product_id: "", layout_name: "fx505d", - basic_modes: [Static, Breathe, Strobe, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, Pulse], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -75,7 +75,7 @@ device_name: "G512L", product_id: "", layout_name: "g512", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard, Lightbar], @@ -84,7 +84,7 @@ device_name: "G512LI", product_id: "", layout_name: "g512", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [], advanced_type: None, power_zones: [Keyboard, Lightbar], @@ -93,7 +93,7 @@ device_name: "G513I", product_id: "", layout_name: "g513i", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: Zoned([ZonedKbLeft, ZonedKbLeftMid, ZonedKbRightMid, ZonedKbRight, LightbarRight, LightbarRightCorner, LightbarRightBottom, LightbarLeftBottom, LightbarLeftCorner, LightbarLeft]), power_zones: [Keyboard, Lightbar], @@ -102,7 +102,7 @@ device_name: "G513Q", product_id: "", layout_name: "g513i", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard, Lightbar], @@ -111,7 +111,7 @@ device_name: "G513QR", product_id: "", layout_name: "g513i-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard, Lightbar], @@ -120,7 +120,7 @@ device_name: "G513RC", product_id: "", layout_name: "g513i", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [], advanced_type: Zoned([ZonedKbLeft, ZonedKbLeftMid, ZonedKbRightMid, ZonedKbRight, LightbarRight, LightbarRightCorner, LightbarRightBottom, LightbarLeftBottom, LightbarLeftCorner, LightbarLeft]), power_zones: [Keyboard, Lightbar], @@ -129,7 +129,7 @@ device_name: "G513RS", product_id: "", layout_name: "g513i-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard, Lightbar], @@ -138,7 +138,7 @@ device_name: "G513RW", product_id: "", layout_name: "g513i-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard, Lightbar], @@ -147,7 +147,7 @@ device_name: "G531", product_id: "", layout_name: "g513i-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -156,7 +156,7 @@ device_name: "G531GD", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -165,7 +165,7 @@ device_name: "G531GT", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -174,7 +174,7 @@ device_name: "G531GU", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -183,7 +183,7 @@ device_name: "G531GV", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -192,7 +192,7 @@ device_name: "G531GW", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -201,7 +201,7 @@ device_name: "G532", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -210,7 +210,7 @@ device_name: "G533Q", product_id: "1866", layout_name: "g533q-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -219,7 +219,7 @@ device_name: "G533Z", product_id: "", layout_name: "g533q-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -228,7 +228,7 @@ device_name: "G614J", product_id: "", layout_name: "g634j-per-key", - basic_modes: [Static, Breathe, Pulse, Strobe, Rainbow], + basic_modes: [Static, Breathe, Pulse, RainbowCycle, RainbowWave], basic_zones: [], advanced_type: None, power_zones: [Keyboard, Lightbar], @@ -237,7 +237,7 @@ device_name: "G634J", product_id: "", layout_name: "g634j-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard, Lightbar, Logo, RearGlow], @@ -246,7 +246,7 @@ device_name: "G712LI", product_id: "", layout_name: "gl503", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -255,7 +255,7 @@ device_name: "G712LV", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -264,7 +264,7 @@ device_name: "G712LW", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -273,7 +273,7 @@ device_name: "G713IC", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -282,7 +282,7 @@ device_name: "G713P", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -291,7 +291,7 @@ device_name: "G713QM", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -300,7 +300,7 @@ device_name: "G713QR", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -309,7 +309,7 @@ device_name: "G713RC", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [], advanced_type: Zoned([ZonedKbLeft, ZonedKbLeftMid, ZonedKbRightMid, ZonedKbRight, LightbarRight, LightbarRightCorner, LightbarRightBottom, LightbarLeftBottom, LightbarLeftCorner, LightbarLeft]), power_zones: [Keyboard, Lightbar], @@ -318,7 +318,7 @@ device_name: "G713RM", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -327,7 +327,7 @@ device_name: "G713RS", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -336,7 +336,7 @@ device_name: "G713RW", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4, BarLeft, BarRight], advanced_type: None, power_zones: [Keyboard, Lightbar], @@ -345,7 +345,7 @@ device_name: "G731", product_id: "", layout_name: "g533q", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: PerKey, power_zones: [Keyboard], @@ -354,7 +354,7 @@ device_name: "G731GT", product_id: "", layout_name: "g533q", - basic_modes: [Static, Breathe, Strobe, Rainbow], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -363,7 +363,7 @@ device_name: "G731GU", product_id: "", layout_name: "g533q", - basic_modes: [Static, Breathe, Strobe, Rainbow], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -372,7 +372,7 @@ device_name: "G731GV", product_id: "", layout_name: "g533q", - basic_modes: [Static, Breathe, Strobe, Rainbow], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -381,7 +381,7 @@ device_name: "G731GW", product_id: "", layout_name: "g533q", - basic_modes: [Static, Breathe, Strobe, Rainbow], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -390,7 +390,7 @@ device_name: "G733C", product_id: "", layout_name: "g513i-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard, Lightbar, Logo, Lid], @@ -399,7 +399,7 @@ device_name: "G733PZ", product_id: "", layout_name: "g733pz-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard, Lightbar], @@ -408,7 +408,7 @@ device_name: "G733Q", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -417,7 +417,7 @@ device_name: "G733Z", product_id: "", layout_name: "g513i-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -426,7 +426,7 @@ device_name: "G814J", product_id: "", layout_name: "g814ji-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard, Lightbar], @@ -435,7 +435,7 @@ device_name: "G834J", product_id: "", layout_name: "g814ji-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard, Lightbar, Logo, RearGlow], @@ -462,7 +462,7 @@ device_name: "GA402N", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Pulse, Rainbow, Strobe], + basic_modes: [Static, Breathe, Pulse, RainbowWave, RainbowCycle], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -471,7 +471,7 @@ device_name: "GA402R", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Pulse, Rainbow], + basic_modes: [Static, Breathe, Pulse, RainbowWave], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -480,7 +480,7 @@ device_name: "GA402X", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Pulse, Rainbow], + basic_modes: [Static, Breathe, Pulse, RainbowWave], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -489,7 +489,7 @@ device_name: "GA402XV", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Comet], + basic_modes: [Static, Breathe, RainbowCycle, Comet], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -507,7 +507,7 @@ device_name: "GA503Q", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Pulse, Rainbow, Strobe], + basic_modes: [Static, Breathe, Pulse, RainbowWave, RainbowCycle], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -525,7 +525,7 @@ device_name: "GA503R", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Pulse, Rainbow, Strobe], + basic_modes: [Static, Breathe, Pulse, RainbowWave, RainbowCycle], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -534,7 +534,7 @@ device_name: "GL503", product_id: "", layout_name: "gl503", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -543,7 +543,7 @@ device_name: "GL503V", product_id: "", layout_name: "gl503", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -552,7 +552,7 @@ device_name: "GL504G", product_id: "", layout_name: "gl503", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4, Logo, BarLeft, BarRight], advanced_type: None, power_zones: [Keyboard], @@ -561,7 +561,7 @@ device_name: "GL531", product_id: "", layout_name: "g512", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -570,7 +570,7 @@ device_name: "GL553V", product_id: "", layout_name: "g533q", - basic_modes: [Static, Breathe, Strobe], + basic_modes: [Static, Breathe, RainbowCycle], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -579,7 +579,7 @@ device_name: "GL703G", product_id: "", layout_name: "gl503", - basic_modes: [Static, Breathe, Strobe, Rainbow], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -588,7 +588,7 @@ device_name: "GM501G", product_id: "", layout_name: "fa507", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -597,7 +597,7 @@ device_name: "GU502", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -606,7 +606,7 @@ device_name: "GU502L", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -615,7 +615,7 @@ device_name: "GU502LU", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, Pulse], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -624,7 +624,7 @@ device_name: "GU603H", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [], advanced_type: Zoned([SingleZone]), power_zones: [Keyboard], @@ -633,7 +633,7 @@ device_name: "GU603V", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [], advanced_type: Zoned([SingleZone]), power_zones: [Keyboard], @@ -642,7 +642,7 @@ device_name: "GU603Z", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [], advanced_type: Zoned([SingleZone]), power_zones: [Keyboard], @@ -651,7 +651,7 @@ device_name: "GU604V", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [], advanced_type: Zoned([SingleZone]), power_zones: [Keyboard], @@ -660,7 +660,7 @@ device_name: "GU605M", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [], advanced_type: Zoned([SingleZone]), power_zones: [Keyboard], @@ -696,7 +696,7 @@ device_name: "GV601R", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, Pulse], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -714,7 +714,7 @@ device_name: "GV604V", product_id: "", layout_name: "ga401q", - basic_modes: [Static, Breathe, Strobe, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, Pulse], basic_zones: [], advanced_type: None, power_zones: [Keyboard], @@ -723,7 +723,7 @@ device_name: "GX502", product_id: "", layout_name: "gx502", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -732,7 +732,7 @@ device_name: "GX531", product_id: "", layout_name: "gx531-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [Key1, Key2, Key3, Key4], advanced_type: None, power_zones: [Keyboard], @@ -741,7 +741,7 @@ device_name: "GX550L", product_id: "", layout_name: "gx531-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -750,7 +750,7 @@ device_name: "GX551Q", product_id: "", layout_name: "gx531-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Pulse], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Pulse], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -759,7 +759,7 @@ device_name: "GX650P", product_id: "", layout_name: "gx531-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -768,7 +768,7 @@ device_name: "GX650R", product_id: "", layout_name: "gx531-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -777,7 +777,7 @@ device_name: "GX701", product_id: "", layout_name: "gx531-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: PerKey, power_zones: [Keyboard], @@ -786,7 +786,7 @@ device_name: "GX703H", product_id: "", layout_name: "gx531-per-key", - basic_modes: [Static, Breathe, Strobe, Rainbow, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], + basic_modes: [Static, Breathe, RainbowCycle, RainbowWave, Star, Rain, Highlight, Laser, Ripple, Pulse, Comet, Flash], basic_zones: [], advanced_type: None, power_zones: [Keyboard], diff --git a/rog-aura/src/aura_detection.rs b/rog-aura/src/aura_detection.rs index f593025f..cfef1d9c 100644 --- a/rog-aura/src/aura_detection.rs +++ b/rog-aura/src/aura_detection.rs @@ -2,7 +2,7 @@ use std::env; use dmi_id::DMIID; use log::{error, info, warn}; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use crate::keyboard::AdvancedAuraType; use crate::{AuraModeNum, AuraZone, PowerZones}; diff --git a/rog-aura/src/builtin_modes.rs b/rog-aura/src/builtin_modes.rs index 34317444..166507c6 100644 --- a/rog-aura/src/builtin_modes.rs +++ b/rog-aura/src/builtin_modes.rs @@ -1,7 +1,7 @@ use std::fmt::Display; use std::str::FromStr; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use typeshare::typeshare; #[cfg(feature = "dbus")] use zbus::zvariant::{OwnedValue, Type, Value}; @@ -261,8 +261,8 @@ pub enum AuraModeNum { #[default] Static = 0, Breathe = 1, - Strobe = 2, - Rainbow = 3, + RainbowCycle = 2, + RainbowWave = 3, Star = 4, Rain = 5, Highlight = 6, @@ -290,8 +290,8 @@ impl From<&AuraModeNum> for &str { match mode { AuraModeNum::Static => "Static", AuraModeNum::Breathe => "Breathe", - AuraModeNum::Strobe => "Strobe", - AuraModeNum::Rainbow => "Rainbow", + AuraModeNum::RainbowCycle => "RainbowCycle", + AuraModeNum::RainbowWave => "RainbowWave", AuraModeNum::Star => "Stars", AuraModeNum::Rain => "Rain", AuraModeNum::Highlight => "Highlight", @@ -307,8 +307,8 @@ impl From<&str> for AuraModeNum { fn from(mode: &str) -> Self { match mode { "Breathe" => AuraModeNum::Breathe, - "Strobe" => AuraModeNum::Strobe, - "Rainbow" => AuraModeNum::Rainbow, + "RainbowCycle" => AuraModeNum::RainbowCycle, + "RainbowWave" => AuraModeNum::RainbowWave, "Stars" => AuraModeNum::Star, "Rain" => AuraModeNum::Rain, "Highlight" => AuraModeNum::Highlight, @@ -326,8 +326,8 @@ impl From for AuraModeNum { fn from(mode: u8) -> Self { match mode { 1 => AuraModeNum::Breathe, - 2 => AuraModeNum::Strobe, - 3 => AuraModeNum::Rainbow, + 2 => AuraModeNum::RainbowCycle, + 3 => AuraModeNum::RainbowWave, 4 => AuraModeNum::Star, 5 => AuraModeNum::Rain, 6 => AuraModeNum::Highlight, @@ -532,10 +532,10 @@ impl AuraEffect { | AuraModeNum::Comet | AuraModeNum::Flash => AuraParameters::new(true, true, false, false, false), AuraModeNum::Breathe => AuraParameters::new(true, true, true, true, false), - AuraModeNum::Strobe | AuraModeNum::Rain => { + AuraModeNum::RainbowCycle | AuraModeNum::Rain => { AuraParameters::new(true, false, false, true, false) } - AuraModeNum::Rainbow => AuraParameters::new(true, false, false, true, true), + AuraModeNum::RainbowWave => AuraParameters::new(true, false, false, true, true), AuraModeNum::Star => AuraParameters::new(true, true, true, true, true), AuraModeNum::Laser | AuraModeNum::Ripple => { AuraParameters::new(true, true, false, true, false) @@ -710,7 +710,7 @@ mod tests { ]; assert_eq!(<[u8; LED_MSG_LEN]>::from(&st)[..9], capture[..9]); - st.mode = AuraModeNum::Rainbow; + st.mode = AuraModeNum::RainbowWave; let capture = [ 0x5d, 0xb3, 0x07, 0x03, 0xff, 0x00, 0xcd, 0xe1, 0x01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, diff --git a/rog-aura/src/effects/mod.rs b/rog-aura/src/effects/mod.rs index 39576a16..39b036de 100644 --- a/rog-aura/src/effects/mod.rs +++ b/rog-aura/src/effects/mod.rs @@ -1,4 +1,4 @@ -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; mod doom; pub use doom::*; diff --git a/rog-control-center/Cargo.toml b/rog-control-center/Cargo.toml index 8142ad04..8a2b00ca 100644 --- a/rog-control-center/Cargo.toml +++ b/rog-control-center/Cargo.toml @@ -38,7 +38,6 @@ env_logger.workspace = true tokio.workspace = true serde.workspace = true -serde_derive.workspace = true zbus.workspace = true dirs.workspace = true notify-rust.workspace = true diff --git a/rog-control-center/src/config.rs b/rog-control-center/src/config.rs index 0a97db66..ef8207f2 100644 --- a/rog-control-center/src/config.rs +++ b/rog-control-center/src/config.rs @@ -1,7 +1,7 @@ use std::fs::create_dir; use config_traits::{StdConfig, StdConfigLoad1}; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use crate::notify::EnabledNotifications; diff --git a/rog-profiles/Cargo.toml b/rog-profiles/Cargo.toml index 8402edd8..9cbbc7f2 100644 --- a/rog-profiles/Cargo.toml +++ b/rog-profiles/Cargo.toml @@ -16,7 +16,6 @@ dbus = ["zbus"] log.workspace = true udev.workspace = true serde.workspace = true -serde_derive.workspace = true typeshare.workspace = true rog_platform = { path = "../rog-platform" } diff --git a/rog-profiles/src/fan_curve_set.rs b/rog-profiles/src/fan_curve_set.rs index 1ff43cad..ad09651c 100644 --- a/rog-profiles/src/fan_curve_set.rs +++ b/rog-profiles/src/fan_curve_set.rs @@ -1,5 +1,5 @@ use log::{error, trace}; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use typeshare::typeshare; use udev::Device; #[cfg(feature = "dbus")] diff --git a/rog-profiles/src/lib.rs b/rog-profiles/src/lib.rs index 669cac06..2f9366ea 100644 --- a/rog-profiles/src/lib.rs +++ b/rog-profiles/src/lib.rs @@ -5,7 +5,7 @@ use error::ProfileError; use fan_curve_set::CurveData; use log::debug; use rog_platform::platform::ThrottlePolicy; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use typeshare::typeshare; pub use udev::Device; #[cfg(feature = "dbus")] diff --git a/rog-slash/Cargo.toml b/rog-slash/Cargo.toml index 7be59953..9309c04e 100644 --- a/rog-slash/Cargo.toml +++ b/rog-slash/Cargo.toml @@ -23,7 +23,6 @@ path = "src/lib.rs" [dependencies] serde.workspace = true -serde_derive.workspace = true typeshare.workspace = true zbus = { workspace = true, optional = true } dmi_id = { path = "../dmi-id", optional = true } diff --git a/rog-slash/src/data.rs b/rog-slash/src/data.rs index 15e50b7b..4c818836 100644 --- a/rog-slash/src/data.rs +++ b/rog-slash/src/data.rs @@ -1,7 +1,7 @@ use std::fmt::Display; use std::str::FromStr; -use serde_derive::{Deserialize, Serialize}; +use serde::{Deserialize, Serialize}; use typeshare::typeshare; #[cfg(feature = "dbus")] use zbus::zvariant::Type;