witas 0.1.1

An asynchronous window library in Rust for Windows
docs.rs failed to build witas-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: witas-0.11.2

witas

wita at crates.io wita at docs.rs

An asynchronous window library in Rust for Windows

The simple example

#[tokio::main]
async fn main() {
    let (_window, mut rx) = witas::Window::builder()
        .title("witas hello")
        .inner_size(witas::LogicalSize::new(640, 480))
        .build()
        .await
        .unwrap();
    loop {
        let event = rx.recv().await; 
        println!("{:?}", event);
        if let witas::Event::Quit = event {
            break;
        }
    }
    if let Err(e) = witas::UiThread::join().await {
        std::panic::resume_unwind(e);
    }
}

Licensed under MIT License

Copylight (c) 2022 LNSEAB