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

#1777 in Rust patterns

Download history 94/week @ 2023-11-02 91/week @ 2023-11-09 93/week @ 2023-11-16 102/week @ 2023-11-23 98/week @ 2023-11-30 66/week @ 2023-12-07 110/week @ 2023-12-14 105/week @ 2023-12-21 66/week @ 2023-12-28 70/week @ 2024-01-04 99/week @ 2024-01-11 94/week @ 2024-01-18 63/week @ 2024-01-25 56/week @ 2024-02-01 100/week @ 2024-02-08 217/week @ 2024-02-15

463 downloads per month
Used in 5 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
~71K SLoC