### Update Start Listener Calls (Async) Source: https://github.com/hyprland-community/hyprland-rs/blob/master/MIGRATION.md Migrate asynchronous listener start calls to `start_listener_async()`. The `EventListener` now requires a mutable reference. ```rust start_listener_async() ``` -------------------------------- ### Get Keyword (Async) Source: https://github.com/hyprland-community/hyprland-rs/blob/master/MIGRATION.md Use `Keyword::get_async(key)` for getting keywords (getoption) in asynchronous mode. ```rust Keyword::get_async(key) ``` -------------------------------- ### Get Keyword (Blocking) Source: https://github.com/hyprland-community/hyprland-rs/blob/master/MIGRATION.md Use `Keyword::get(key)` for getting keywords (getoption) in blocking mode. ```rust Keyword::get(key) ``` -------------------------------- ### Update Start Listener Calls (Blocking) Source: https://github.com/hyprland-community/hyprland-rs/blob/master/MIGRATION.md Migrate blocking listener start calls to `start_listener()`. The `EventListener` now requires a mutable reference. ```rust start_listener() ``` -------------------------------- ### Add Prelude Import in Hyprland-rs Source: https://github.com/hyprland-community/hyprland-rs/blob/master/MIGRATION.md Import the prelude to access new traits introduced in version 0.3.0. This is the first recommended step for migration. ```rust use hyprland::prelude::*; ``` -------------------------------- ### Add hyprland-rs to Project (Stable) Source: https://github.com/hyprland-community/hyprland-rs/blob/master/README.md Add this to your Cargo.toml to include the latest stable version of the hyprland-rs crate. ```toml hyprland = "0.4.0-beta.3" ``` -------------------------------- ### Set Keyword (Async) Source: https://github.com/hyprland-community/hyprland-rs/blob/master/MIGRATION.md Use `Keyword::set_async(key, val)` for setting keywords in asynchronous mode. ```rust Keyword::set_async(key, val) ``` -------------------------------- ### Add hyprland-rs to Project (Master Branch) Source: https://github.com/hyprland-community/hyprland-rs/blob/master/README.md Use this configuration in Cargo.toml to include the master branch of hyprland-rs. Note that this may not be publishable to crates.io. ```toml hyprland = { git = "https://github.com/hyprland-community/hyprland-rs", branch = "master" } ``` -------------------------------- ### Set Keyword (Blocking) Source: https://github.com/hyprland-community/hyprland-rs/blob/master/MIGRATION.md Use `Keyword::set(key, val)` for setting keywords in blocking mode. ```rust Keyword::set(key, val) ``` -------------------------------- ### Update Data Fetcher Notation (Async) Source: https://github.com/hyprland-community/hyprland-rs/blob/master/MIGRATION.md Migrate asynchronous data fetching calls to the new iterator-based notation. Use `.collect()` to gather results or `.to_vec()` for direct vector conversion. ```rust Something::get_async().collect() ``` -------------------------------- ### Update Dispatcher Notation (Async) Source: https://github.com/hyprland-community/hyprland-rs/blob/master/MIGRATION.md Update asynchronous dispatcher calls to use the `Dispatch::call_async()` method. ```rust Dispatch::call_async() ``` -------------------------------- ### Update Data Fetcher Notation (Blocking) Source: https://github.com/hyprland-community/hyprland-rs/blob/master/MIGRATION.md Migrate blocking data fetching calls to the new iterator-based notation. Use `.collect()` to gather results or `.to_vec()` for direct vector conversion. ```rust Something::get().collect() ``` -------------------------------- ### Update Dispatcher Notation (Blocking) Source: https://github.com/hyprland-community/hyprland-rs/blob/master/MIGRATION.md Update blocking dispatcher calls to use the `Dispatch::call()` method. ```rust Dispatch::call() ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.