16 releases (10 breaking)

0.11.4 Aug 5, 2025
0.11.2 Jun 27, 2025
0.11.0 Sep 13, 2024
0.10.0 Jun 17, 2024
0.2.1 Jul 22, 2022

#1376 in Network programming

Download history 18312/week @ 2026-01-19 17386/week @ 2026-01-26 37656/week @ 2026-02-02 54203/week @ 2026-02-09 59558/week @ 2026-02-16 85140/week @ 2026-02-23 89936/week @ 2026-03-02 107310/week @ 2026-03-09 66595/week @ 2026-03-16 43706/week @ 2026-03-23 48933/week @ 2026-03-30 69767/week @ 2026-04-06 59752/week @ 2026-04-13 56667/week @ 2026-04-20 58420/week @ 2026-04-27 17333/week @ 2026-05-04

196,214 downloads per month
Used in tracing-layer-axiom

MIT/Apache

115KB
2.5K SLoC

axiom-rs docs.rs build crates.io License

use axiom_rs::Client;
use serde_json::json;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Auto-configure the client from the environment variable AXIOM_TOKEN:
    let client = Client::new()?;

    client
        .ingest(
            "DATASET_NAME",
            vec![json!({
                "foo": "bar",
            })],
        )
        .await?;
    let _res = client
        .query(r#"['DATASET_NAME'] | where foo == "bar" | limit 100"#, None)
        .await?;
    Ok(())
}

Install

cargo add axiom-rs

Optional features

You can use the Cargo features:

  • default-tls: Provides TLS support to connect over HTTPS. Enabled by default.
  • native-tls: Enables TLS functionality provided by native-tls.
  • rustls-tls: Enables TLS functionality provided by rustls.
  • tokio: Enables usage with the tokio runtime. Enabled by default.
  • async-std: Enables usage with the async-std runtime.

Documentation

Read documentation on axiom.co/docs/guides/rust.

License

MIT or Apache

Dependencies

~12–25MB
~391K SLoC