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

#1390 in Rust patterns

Download history 74/week @ 2023-08-07 113/week @ 2023-08-14 36/week @ 2023-08-21 57/week @ 2023-08-28 111/week @ 2023-09-04 58/week @ 2023-09-11 61/week @ 2023-09-18 39/week @ 2023-09-25 47/week @ 2023-10-02 67/week @ 2023-10-09 110/week @ 2023-10-16 96/week @ 2023-10-23 104/week @ 2023-10-30 112/week @ 2023-11-06 67/week @ 2023-11-13 90/week @ 2023-11-20

392 downloads per month
Used in 4 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
~69K SLoC