PostHog Rust

Please see the main PostHog docs.

This crate is under development

Quickstart

Add posthog-rs to your Cargo.toml.

toml [dependencies] posthog_rs = "0.2.0"

```rust let client = crate::client(env!("POSTHOGAPIKEY"));

let mut event = Event::new("test", "1234"); event.insertprop("key1", "value1").unwrap(); event.insertprop("key2", vec!["a", "b"]).unwrap();

client.capture(event).unwrap();

```