#post-hog #posthog-rs

posthog-rs

An unofficial Rust client for Posthog (https://posthog.com/)

13 releases

0.3.5 Feb 19, 2025
0.3.4 Feb 19, 2025
0.2.2 Oct 26, 2021
0.1.3 Apr 29, 2021
Download history 5/week @ 2024-12-04 18/week @ 2024-12-11 5/week @ 2025-01-01 61/week @ 2025-01-08 4/week @ 2025-01-15 34/week @ 2025-01-22 168/week @ 2025-01-29 17/week @ 2025-02-05 215/week @ 2025-02-12 1383/week @ 2025-02-19 1392/week @ 2025-02-26 1285/week @ 2025-03-05 1363/week @ 2025-03-12 809/week @ 2025-03-19

5,029 downloads per month
Used in 3 crates (2 directly)

MIT license

16KB
328 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.2.0"
let client = crate::client(env!("POSTHOG_API_KEY"));

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

client.capture(event).unwrap();

Dependencies

~6–22MB
~255K SLoC