devlogbus 1.3.1

Rust SDK for publishing records to DevLogBus.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use devlogbus::{Client, ClientOptions};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::new(ClientOptions {
        source: Some("example_rust".to_string()),
        ..Default::default()
    });

    client.publish_message(
        "INFO",
        "Rust worker started",
        Some("{\"queue\":\"demo\"}".to_string()),
    )?;
    Ok(())
}