mac-notification-sys 0.3.0

Thin wrapper around macOS Notifications.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate mac_notification_sys;
extern crate chrono;

use chrono::offset::*;
use mac_notification_sys::*;

#[test]
#[should_panic]
fn dont_schedle_in_past() {
    let stamp = Utc::now().timestamp() as f64 - 5.;
    let _sent = schedule_notification("Danger",
                                      &Some("Will Robinson"),
                                      "Run away as fast as you can",
                                      &Some("Blow"),
                                      stamp)
        .unwrap();
}