6 releases

0.3.0 May 6, 2019
0.2.0 Jul 6, 2018
0.1.3 Jun 21, 2017
0.1.2 Apr 19, 2017
0.1.1 Mar 12, 2017

#6 in #notification

Download history 24/week @ 2019-07-27 20/week @ 2019-08-03 31/week @ 2019-08-10 108/week @ 2019-08-17 160/week @ 2019-08-24 68/week @ 2019-08-31 190/week @ 2019-09-07 219/week @ 2019-09-14 120/week @ 2019-09-21 155/week @ 2019-09-28 74/week @ 2019-10-05 55/week @ 2019-10-12 68/week @ 2019-10-19 125/week @ 2019-10-26 163/week @ 2019-11-02

206 downloads per month
Used in 32 crates (3 directly)

MIT license

14KB
285 lines

mac-notification-sys

license version Build Status

A simple wrapper to deliver or schedule macOS Notifications in Rust.

Usage

#Cargo.toml
[dependencies]
mac-notification-sys = "0.1"

Documentation

The documentation can be found here

Example

extern crate mac_notification_sys;
use mac_notification_sys::*;

fn main() {
    let bundle = get_bundle_identifier_or_default("firefox");
    set_application(&bundle).unwrap();
    send_notification("Danger",
                      &Some("Will Robinson"),
                      "Run away as fast as you can",
                      &Some("Blow"))
        .unwrap();
    send_notification("NOW", &None, "Without subtitle", &Some("Submarine")).unwrap();

}

Dependencies

~0.8–1.3MB
~20K SLoC