use gntp::{GntpClient, NotificationType};
fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("=== Basic GNTP Notification Example ===\n");
let mut client = GntpClient::new("Basic Example App");
let notification = NotificationType::new("basic")
.with_display_name("Basic Notification")
.with_enabled(true);
println!("Registering with Growl...");
client.register(vec![notification])?;
println!("✓ Registered successfully\n");
println!("Sending notification...");
client.notify(
"basic",
"Hello from Rust!",
"This is a basic GNTP notification without any icon.",
)?;
println!("✓ Notification sent\n");
println!("✅ Example completed!");
println!("\nYou should see a notification on your screen now.");
Ok(())
}