12 releases (4 stable)
Uses old Rust 2015
1.0.3 | Jan 29, 2018 |
---|---|
1.0.2 | Sep 1, 2017 |
1.0.1 | Jul 11, 2017 |
0.4.0 | Apr 1, 2017 |
0.0.3 | Mar 27, 2015 |
#871 in GUI
255 downloads per month
Used in 6 crates
25KB
397 lines
rust-libnotify
Rust binding to libnotify.
lib.rs
:
Rustic bindings to libnotify
extern crate libnotify;
fn main() {
// Init libnotify
libnotify::init("myapp").unwrap();
// Create a new notification (doesn't show it yet)
let n = libnotify::Notification::new("Summary",
Some("Optional Body"),
None);
// Show the notification
n.show().unwrap();
// Update the existent notification
n.update("I am another notification", None, None).unwrap();
// Show the updated notification
n.show().unwrap();
// We are done, deinit
libnotify::uninit();
}
Dependencies
~3MB
~72K SLoC