win7-notifications 0.2.0

Send Windows 10 styled notifications on Windows 7.
Documentation
use tao::{
  event::{Event, StartCause},
  event_loop::EventLoop,
};
use win7_notifications::{Notification, Timeout};
fn main() {
  let event_loop = EventLoop::new();
  let icon = include_bytes!("icon.ico");

  event_loop.run(move |event, _, _| match event {
    Event::NewEvents(e) if e == StartCause::Init => {
      Notification::new()
        .appname("App name")
        .summary("Critical Error")
        .body("Just kidding, this is just the notification example.")
        .icon(icon.to_vec())
        .timeout(Timeout::Default)
        .show()
        .unwrap();
    }
    _ => (),
  });
}