| 1 | #[cfg(any(target_os = "windows", target_os = "macos"))] |
| 2 | fn main() { |
| 3 | printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("this is a xdg only feature") |
| 4 | } |
| 5 | |
| 6 | #[cfg(all(unix, not(target_os = "macos")))] |
| 7 | fn mainrust-analyzer cargo notify-rust 4.18.0 main().() -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<dyn stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error#>> { |
| 8 | use notify_rustrust-analyzer cargo notify-rust 4.18.0 crate/::{Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#, Timeoutrust-analyzer cargo notify-rust 4.18.0 timeout/Timeout#}; |
| 9 | |
| 10 | notify_rustrust-analyzer cargo notify-rust 4.18.0 crate/::Notificationrust-analyzer cargo notify-rust 4.18.0 notification/Notification#::newrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]new().() |
| 11 | .summaryrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]summary().("Persistent notification") |
| 12 | .bodyrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]body().("This should not go away unless you want it to.") |
| 13 | .iconrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]icon().("firefox") |
| 14 | .hintrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]hint().(Hintrust-analyzer cargo notify-rust 4.18.0 hints/Hint#::Residentrust-analyzer cargo notify-rust 4.18.0 hints/Hint#Resident#(true)) // does not work on kde |
| 15 | .timeoutrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]timeout().(Timeoutrust-analyzer cargo notify-rust 4.18.0 timeout/Timeout#::Neverrust-analyzer cargo notify-rust 4.18.0 timeout/Timeout#Never#) // works on kde and gnome |
| 16 | .showrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]show().()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 17 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()) |
| 18 | } |