blinds

Crates.ioblinds
lib.rsblinds
version0.2.0
sourcesrc
created_at2019-11-17 04:20:56.347092
updated_at2020-09-12 05:05:03.944515
descriptionWrap an async abstraction over a window
homepage
repositoryhttps://github.com/ryanisaacg/blinds
max_upload_size
id181936
size95,417
Ryan G (ryanisaacg)

documentation

README

blinds

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);
        }
    }
}
Commit count: 96

cargo fmt