notify-rust
A not so well-named library for displaying desktop notifications.
[]
= "4"
Usage & Documentation
Please see the documentation for current examples.
Simple Notification
use Notification;
new
.summary
.body
.icon
.show?;
Persistent Notification
use ;
new
.summary
.body
.icon
.appname
.hint
.hint // this is not supported by all implementations
.timeout // this however is
.show?;
Commandline tool
Checkout toastify, it exposes most of the functionality of the lib to the commandline.
Requirements
rustc
>= 1.44- libdbus (linux)
macOS support
This library shines on linux and bsd, which is its original target platform.
Lately it gained support for macOS thanks to mac-notification-sys.
However this only includes a small subset of the current functionality, since NSNotification
s don't have as many features. Please refer to the You are a versed macOS UI developer with mad Objective-C skillz? PRSV.
windows support
Similar to macOS we support windows via the help of winrt-notification.
Contribution
Any help in form of descriptive and friendly issues or comprehensive pull requests are welcome!
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in notify-rust by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Conventions
The Changelog of this library is generated from its commit log, there any commit message must conform with https://www.conventionalcommits.org/en/v1.0.0/. For simplicity you could make your commits with convco.