A simple wrapper to deliver or schedule macOS Notifications in Rust.
```toml
[dependencies] mac-notification-sys = "0.5" ```
The documentation can be found here
```rust use macnotificationsys::*;
fn main() { let bundle = getbundleidentifierordefault("firefox"); set_application(&bundle).unwrap();
send_notification(
"Danger",
Some("Will Robinson"),
"Run away as fast as you can",
None,
)
.unwrap();
send_notification(
"NOW",
None,
"Without subtitle",
Some(Notification::new().sound("Blow")),
)
.unwrap();
}
```
Thanks goes to these wonderful people: - @hoodie - @PandawanFr - Didrik Nordström
Any help in form of descriptive and friendly issues or comprehensive pull requests are welcome!
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in mac-notification-sys by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
The Changelog of this library is generated from its commit log, there any commit message must conform with https://www.conventionalcommits.org/en/v1.0.0/. For simplicity you could make your commits with convco.