Crates.io | wiard |
lib.rs | wiard |
version | 0.3.1 |
source | src |
created_at | 2023-11-17 07:55:32.888273 |
updated_at | 2024-10-25 09:32:00.026615 |
description | Window handling library for Windows in Rust |
homepage | |
repository | https://github.com/btanno/wiard |
max_upload_size | |
id | 1038801 |
size | 165,684 |
Window handling library for Windows in Rust
fn main() {
let mut event_rx = wiard::EventReceiver::new();
let _window = wiard::Window::builder(&event_rx)
.build()
.unwrap();
loop {
let Some((event, _)) = event_rx.recv() else {
break;
};
println!("{event:?}");
}
}
#[tokio::main]
async fn main() {
let mut event_rx = wiard::AsyncEventReceiver::new();
let _window = wiard::Window::builder(&event_rx)
.await
.unwrap();
loop {
let Some((event, _)) = event_rx.recv().await else {
break;
};
println!("{event:?}");
}
}
This library is licensed under the MIT license.