hyprrust 0.2.1

A crate that provides an interface with the Hyprland sockets.
Documentation
use std::io;

use hyprrust::data::*;
use hyprrust::HyprlandConnection;

#[tokio::main]
async fn main() -> Result<(), io::Error> {
    let conn = HyprlandConnection::current().unwrap();

    println!(
        "Hyprland version: {:?}",
        conn.get::<Version>().await?.version
    );

    let current_win = conn.get::<Window>().await?;
    println!("Current window title: {:?}", current_win.title);

    println!(
        "Decorations active for current window: {:?}",
        conn.get_with_argument::<Decorations>(current_win.into())
            .await?
            .iter()
            .map(|deco| deco.decoration_name.as_str())
            .collect::<Vec<&str>>()
    );

    Ok(())
}