15 releases
0.3.7 | Jun 3, 2025 |
---|---|
0.3.6 | Jun 2, 2025 |
0.3.5 | Feb 19, 2025 |
0.2.2 | Oct 26, 2021 |
0.1.3 | Apr 29, 2021 |
#204 in Web programming
10,457 downloads per month
Used in 3 crates
(2 directly)
19KB
367 lines
PostHog Rust
Please see the main PostHog docs.
This crate is under development
Quickstart
Add posthog-rs
to your Cargo.toml
.
[dependencies]
posthog-rs = "0.3.7"
let client = posthog_rs::client(env!("POSTHOG_API_KEY"));
let mut event = posthog_rs::Event::new("test", "1234");
event.insert_prop("key1", "value1").unwrap();
event.insert_prop("key2", vec!["a", "b"]).unwrap();
client.capture(event).unwrap();
Dependencies
~6–18MB
~246K SLoC