wiard 0.8.1

Window handling library for Windows in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let mut event_rx = wiard::AsyncEventReceiver::new();
    let _window = wiard::Window::builder(&event_rx)
        .title("wiard hello_async")
        .await?;
    loop {
        let Some((event, _)) = event_rx.recv().await else {
            break;
        };
        println!("{event:?}");
    }
    Ok(())
}