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

Download history 71/week @ 2024-03-15 101/week @ 2024-03-22 122/week @ 2024-03-29 83/week @ 2024-04-05 84/week @ 2024-04-12 85/week @ 2024-04-19 89/week @ 2024-04-26 91/week @ 2024-05-03 77/week @ 2024-05-10 92/week @ 2024-05-17 78/week @ 2024-05-24 80/week @ 2024-05-31 51/week @ 2024-06-07 72/week @ 2024-06-14 86/week @ 2024-06-21 31/week @ 2024-06-28

255 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
~72K SLoC