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

#1118 in GUI

Download history 46/week @ 2024-11-15 71/week @ 2024-11-22 100/week @ 2024-11-29 266/week @ 2024-12-06 204/week @ 2024-12-13 81/week @ 2024-12-20 90/week @ 2024-12-27 94/week @ 2025-01-03 147/week @ 2025-01-10 116/week @ 2025-01-17 73/week @ 2025-01-24 92/week @ 2025-01-31 157/week @ 2025-02-07 106/week @ 2025-02-14 115/week @ 2025-02-21 68/week @ 2025-02-28

467 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