The Rust SDK for Axiom — manage datasets, ingest and query data all from your Rust project.
Add the following to your Cargo.toml:
toml
[dependencies]
axiom-rs = "0.1"
This library uses Tokio by default, so your Cargo.toml
could look like this:
toml
[dependencies]
axiom-rs = "0.1"
tokio = "1"
Usage with async-std
If you want to use async-std, you need to set some features:
toml
[dependencies]
axiom-rs = { version = "0.1", default-features = false, features = ["async-std"] }
async-std = "1"
And your src/main.rs like this:
```rust use axiom_rs::Client;
async fn main() -> Result<(), Box
Note: The
Clientconstructor usesAXIOM_TOKENand other parameters from your environment by default. See theClientdocumentation for other options.
The following are a list of Cargo features that can be enabled or disabled:
native-tls.rustls.tokio runtime.async-std runtime.Licensed under either of
at your option.