| Crates.io | blinds |
| lib.rs | blinds |
| version | 0.3.0-alpha0 |
| created_at | 2019-11-17 04:20:56.347092+00 |
| updated_at | 2025-06-11 02:50:19.502892+00 |
| description | Wrap an async abstraction over a window |
| homepage | |
| repository | https://github.com/ryanisaacg/blinds |
| max_upload_size | |
| id | 181936 |
| size | 122,208 |
blinds covers up the details of your windowing for you, by providing an async API.
use blinds::{run, Event, EventStream, Key, Settings, Window};
fn main() {
run(Settings::default(), app);
}
async fn app(_window: Window, mut events: EventStream) {
loop {
while let Some(ev) = events.next_event().await {
println!("{:?}", ev);
}
}
}