| 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 an xdg only feature") |
| 4 | } |
| 5 | |
| 6 | #[cfg(all(unix, not(target_os = "macos")))] |
| 7 | #[async_stdrust-analyzer cargo async-std 1.13.2 crate/::mainrust-analyzer cargo async-attributes 1.1.2 main:] |
| 8 | async fn 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#>> { |
| 9 | use notify_rustrust-analyzer cargo notify-rust 4.18.0 crate/::Notificationrust-analyzer cargo notify-rust 4.18.0 notification/Notification#; |
| 10 | 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().("async notification") |
| 12 | .bodyrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]body().("this notification was sent via an async api") |
| 13 | .iconrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]icon().("dialog-positive") |
| 14 | .show_asyncrust-analyzer cargo notify-rust 4.18.0 notification/impl#[Notification]show_async().() |
| 15 | .rust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().awaitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().; |
| 16 | Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(()) |
| 17 | } |