diff --git a/rust/Cargo.toml b/rust/Cargo.toml index e8c46f7..66d6b21 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -12,7 +12,7 @@ futures = "0.3" futures-util = "0.3" serde = { version = "1.0", features = ["derive"] } tokio = { version = "1.21.2", features = ["full"] } -stream_deck_sdk = { version="1.0.0", features = ["download", "images", "logging"] } +stream_deck_sdk = { version="1.0.1", features = ["download", "images", "logging"] } warp = "0.3.3" skia-safe = "0.57.0" tokio-stream = "0.1.11" diff --git a/rust/src/actions/authorization.rs b/rust/src/actions/authorization.rs index c911d34..7ed760c 100644 --- a/rust/src/actions/authorization.rs +++ b/rust/src/actions/authorization.rs @@ -1,7 +1,7 @@ use async_trait::async_trait; use serde::Serialize; use stream_deck_sdk::action::Action; -use stream_deck_sdk::events::received::SendToPluginEvent; +use stream_deck_sdk::events::events::SendToPluginEvent; use stream_deck_sdk::stream_deck::StreamDeck; use crate::dim::with_action; diff --git a/rust/src/actions/farming_mode.rs b/rust/src/actions/farming_mode.rs index ff1b3f9..a05b2bb 100644 --- a/rust/src/actions/farming_mode.rs +++ b/rust/src/actions/farming_mode.rs @@ -1,7 +1,7 @@ use async_trait::async_trait; use serde::Deserialize; use stream_deck_sdk::action::Action; -use stream_deck_sdk::events::received::{AppearEvent, DidReceiveGlobalSettingsEvent, KeyEvent}; +use stream_deck_sdk::events::events::{AppearEvent, DidReceiveGlobalSettingsEvent, KeyEvent}; use stream_deck_sdk::stream_deck::StreamDeck; use crate::dim::with_action; diff --git a/rust/src/actions/loadout.rs b/rust/src/actions/loadout.rs index 7ffd142..a66d68a 100644 --- a/rust/src/actions/loadout.rs +++ b/rust/src/actions/loadout.rs @@ -3,7 +3,7 @@ use serde::{Deserialize, Serialize}; use serde_json::json; use skia_safe::{Color, Rect}; use stream_deck_sdk::action::Action; -use stream_deck_sdk::events::received::{ +use stream_deck_sdk::events::events::{ AppearEvent, DidReceiveSettingsEvent, KeyEvent, SendToPluginEvent, }; use stream_deck_sdk::get_settings; diff --git a/rust/src/actions/max_power.rs b/rust/src/actions/max_power.rs index a834dfe..243f005 100644 --- a/rust/src/actions/max_power.rs +++ b/rust/src/actions/max_power.rs @@ -2,7 +2,7 @@ use async_trait::async_trait; use serde::{Deserialize, Serialize}; use skia_safe::{Color, Point}; use stream_deck_sdk::action::Action; -use stream_deck_sdk::events::received::{ +use stream_deck_sdk::events::events::{ AppearEvent, DidReceiveGlobalSettingsEvent, DidReceiveSettingsEvent, KeyEvent, }; use stream_deck_sdk::get_settings; diff --git a/rust/src/actions/metrics.rs b/rust/src/actions/metrics.rs index 86ae191..4ceb4e2 100644 --- a/rust/src/actions/metrics.rs +++ b/rust/src/actions/metrics.rs @@ -5,7 +5,7 @@ use separator::Separatable; use serde::{Deserialize, Serialize}; use skia_safe::Point; use stream_deck_sdk::action::Action; -use stream_deck_sdk::events::received::{ +use stream_deck_sdk::events::events::{ AppearEvent, DidReceiveGlobalSettingsEvent, DidReceiveSettingsEvent, }; use stream_deck_sdk::get_settings; diff --git a/rust/src/actions/open_dim.rs b/rust/src/actions/open_dim.rs index 873ff51..e8bdf1d 100644 --- a/rust/src/actions/open_dim.rs +++ b/rust/src/actions/open_dim.rs @@ -1,7 +1,7 @@ use async_trait::async_trait; use serde::{Deserialize, Serialize}; use stream_deck_sdk::action::Action; -use stream_deck_sdk::events::received::KeyEvent; +use stream_deck_sdk::events::events::KeyEvent; use stream_deck_sdk::get_settings; use stream_deck_sdk::stream_deck::StreamDeck; diff --git a/rust/src/actions/postmaster.rs b/rust/src/actions/postmaster.rs index 269d0f9..6d1ff70 100644 --- a/rust/src/actions/postmaster.rs +++ b/rust/src/actions/postmaster.rs @@ -2,7 +2,7 @@ use async_trait::async_trait; use serde::{Deserialize, Serialize}; use skia_safe::Point; use stream_deck_sdk::action::Action; -use stream_deck_sdk::events::received::{ +use stream_deck_sdk::events::events::{ AppearEvent, DidReceiveGlobalSettingsEvent, DidReceiveSettingsEvent, KeyEvent, }; use stream_deck_sdk::get_settings; diff --git a/rust/src/actions/pull_item.rs b/rust/src/actions/pull_item.rs index 85d6361..f57cea6 100644 --- a/rust/src/actions/pull_item.rs +++ b/rust/src/actions/pull_item.rs @@ -6,7 +6,7 @@ use skia_safe::color_filters::matrix; use skia_safe::image_filters::blur; use skia_safe::{Color, Point, Rect}; use stream_deck_sdk::action::Action; -use stream_deck_sdk::events::received::{ +use stream_deck_sdk::events::events::{ AppearEvent, DidReceiveGlobalSettingsEvent, DidReceiveSettingsEvent, KeyEvent, SendToPluginEvent, }; diff --git a/rust/src/actions/randomize.rs b/rust/src/actions/randomize.rs index 23a30dc..58d7c57 100644 --- a/rust/src/actions/randomize.rs +++ b/rust/src/actions/randomize.rs @@ -1,7 +1,7 @@ use async_trait::async_trait; use serde::{Deserialize, Serialize}; use stream_deck_sdk::action::Action; -use stream_deck_sdk::events::received::KeyEvent; +use stream_deck_sdk::events::events::KeyEvent; use stream_deck_sdk::get_settings; use stream_deck_sdk::stream_deck::StreamDeck; diff --git a/rust/src/actions/refresh.rs b/rust/src/actions/refresh.rs index 6145d66..8975275 100644 --- a/rust/src/actions/refresh.rs +++ b/rust/src/actions/refresh.rs @@ -1,7 +1,7 @@ use crate::dim::with_action; use async_trait::async_trait; use stream_deck_sdk::action::Action; -use stream_deck_sdk::events::received::KeyEvent; +use stream_deck_sdk::events::events::KeyEvent; use stream_deck_sdk::stream_deck::StreamDeck; pub struct RefreshAction; diff --git a/rust/src/actions/search.rs b/rust/src/actions/search.rs index bf4b4fa..cac5191 100644 --- a/rust/src/actions/search.rs +++ b/rust/src/actions/search.rs @@ -1,7 +1,7 @@ use async_trait::async_trait; use serde::{Deserialize, Serialize}; use stream_deck_sdk::action::Action; -use stream_deck_sdk::events::received::{KeyEvent}; +use stream_deck_sdk::events::events::KeyEvent; use stream_deck_sdk::get_settings; use stream_deck_sdk::stream_deck::StreamDeck; @@ -39,7 +39,8 @@ impl Action for SearchAction { sd.external(with_action( "search", serde_json::to_string(&settings).unwrap(), - )).await; + )) + .await; sd.show_ok(e.context).await; } else { sd.show_alert(e.context).await; diff --git a/rust/src/actions/vault.rs b/rust/src/actions/vault.rs index 84e9c67..006fd08 100644 --- a/rust/src/actions/vault.rs +++ b/rust/src/actions/vault.rs @@ -5,7 +5,7 @@ use separator::Separatable; use serde::{Deserialize, Serialize}; use skia_safe::Point; use stream_deck_sdk::action::Action; -use stream_deck_sdk::events::received::{ +use stream_deck_sdk::events::events::{ AppearEvent, DidReceiveGlobalSettingsEvent, DidReceiveSettingsEvent, }; use stream_deck_sdk::get_settings;