Registry / utility / notify-rust

notify-rust

JSON →
library4.15.0rscratesunverified

Show desktop notifications (linux, bsd, mac). Pure Rust dbus client and server.

# Cargo.toml [dependencies] notify-rust = "4.15.0"
INSTALL
IMPORT
SIG · NOTIFY-RUST
N
notify-rust
utilityrustv4.15.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Notification
use notify_rust::Notification;

Sends a simple desktop notification with a summary and body.

use notify_rust::Notification; fn main() { Notification::new() .summary("Hello") .body("This is a notification") .show() .unwrap(); }
Debug
Known issues
gotchaOn Linux, requires a D-Bus session bus running (usually present in desktop environments).
fix
Ensure a desktop environment with D-Bus is active, or use the 'freedesktop' feature.
affects: >=4.0.0
Upgrade
Version history
4.15.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
notify-rust — cargo add notify-rust · libregistry