1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use aok::{OK, Void}; #[static_init::constructor(0)] extern "C" fn _loginit() { loginit::init(); } #[tokio::test] async fn test_async() -> Void { notify_api::send( "rust/notify_api 标题", "正文", "https://crates.io/crates/notify_api", ) .await?; OK }