Rust Alerts SDK
The API Alerts Rust SDK sends alerts from your Rust code through API Alerts. Drop it into Actix Web servers, Tokio applications, CLI tools, systems software, or any Rust binary that needs to notify you when something important happens. Minimal setup, fire-and-forget by default with optional response handling, and zero infrastructure.
Installation
Add to your Cargo.toml:
[dependencies]
apialerts = "1.0"
Usage
use apialerts::ApiAlerts;
let client = ApiAlerts::new("YOUR-API-KEY");
// Simple notification
client.send("Deployment successful").await;
// With all options
client.send_event(Event {
message: "New user signed up".to_string(),
channel: Some("developers".to_string()),
link: Some("https://dashboard.example.com/users/123".to_string()),
tags: Some(vec!["signup".to_string(), "organic".to_string()]),
}).await;