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

#1039 in GUI

Download history 65/week @ 2024-07-29 67/week @ 2024-08-05 94/week @ 2024-08-12 63/week @ 2024-08-19 125/week @ 2024-08-26 72/week @ 2024-09-02 66/week @ 2024-09-09 65/week @ 2024-09-16 126/week @ 2024-09-23 66/week @ 2024-09-30 13/week @ 2024-10-07 59/week @ 2024-10-14 60/week @ 2024-10-21 66/week @ 2024-10-28 74/week @ 2024-11-04 32/week @ 2024-11-11

237 downloads per month
Used in 6 crates

MIT license

25KB
397 lines

Latest Version License Crate download count

Documentation (crates.io) Documentation (master)

Build Status Join the chat at https://gitter.im/hasufell/rust-libnotify

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
~73K SLoC