honk-me 0.2.0

Official Rust client for Honk (honk-me.app): send events from apps, jobs and CI to your phone, with retries and idempotency built in.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! cargo run --example quickstart   (with HONK_URL and HONK_KEY set; sends one message)
use honk_me::{Honk, Priority};

#[tokio::main]
async fn main() -> honk_me::Result<()> {
    let honk = Honk::from_env()?;
    let accepted = honk
        .loud("Disk 91% full", "db-1 /var is at 91%")
        .group_key("disk/db-1/var")
        .priority(Priority::High)
        .metadata("host", "db-1")
        .await?;
    println!(
        "stored as {} (duplicate: {})",
        accepted.id, accepted.duplicate
    );
    Ok(())
}