36 releases (stable)
✓ Uses Rust 2018 edition
|4.0.0-beta.2||Feb 2, 2020|
|4.0.0-alpha.3||Dec 7, 2019|
|4.0.0-alpha.2||Nov 20, 2019|
|3.6.3||Nov 2, 2019|
|0.9.0||Jun 30, 2015|
#4 in Unix APIs
5,294 downloads per month
Used in 36 crates (34 directly)
[dependencies] notify-rust = "3"
- linux, with
- no windows support, yet
use notify_rust::Notification; Notification::new() .summary("Firefox News") .body("This will almost look like a real firefox notification.") .icon("firefox") .show()?;
use notify_rust::Notification; use notify_rust::Hint; Notification::new() .summary("Category:email") .body("This has nothing to do with emails.\nIt should not go away until you acknowledge it.") .icon("thunderbird") .appname("thunderbird") .hint(Hint::Category("email".to_owned())) .hint(Hint::Resident(true)) // this is not supported by all implementations .timeout(0) // this however is .show()?;
Please see the documentation for current examples.
Checkout toastify, it exposes most of the functionality of the lib to the commandline.
This library shines on linux and bsd, which is its original target platform.
Lately it gained support for macOS thanks to mac-notification-sys.
However this only includes a small subset of the current functionality, since
NSNotifications don't have as many features. Please refer to the You are a versed macOS UI developer with mad Objective-C skillz? PRSV.
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 notify-rust by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.