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

#399 in GUI

Download history 48/week @ 2023-12-08 59/week @ 2023-12-15 51/week @ 2023-12-22 16/week @ 2023-12-29 50/week @ 2024-01-05 68/week @ 2024-01-12 42/week @ 2024-01-19 32/week @ 2024-01-26 26/week @ 2024-02-02 63/week @ 2024-02-09 78/week @ 2024-02-16 109/week @ 2024-02-23 80/week @ 2024-03-01 110/week @ 2024-03-08 71/week @ 2024-03-15 86/week @ 2024-03-22

358 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
~71K SLoC