12 releases (5 stable)

1.4.0 Oct 10, 2024
1.2.0 Aug 19, 2024
1.0.0 Jul 6, 2024
0.3.0 Apr 17, 2024
0.2.0 Dec 10, 2022

#327 in Web programming

Download history 41195/week @ 2024-08-17 15967/week @ 2024-08-24 15737/week @ 2024-08-31 21110/week @ 2024-09-07 27459/week @ 2024-09-14 26007/week @ 2024-09-21 27796/week @ 2024-09-28 28183/week @ 2024-10-05 17954/week @ 2024-10-12 26241/week @ 2024-10-19 30063/week @ 2024-10-26 33158/week @ 2024-11-02 23160/week @ 2024-11-09 38638/week @ 2024-11-16 35176/week @ 2024-11-23 43532/week @ 2024-11-30

148,110 downloads per month

ISC license

300KB
2K SLoC

Statsig for Rust

Test

use statsig::{Statsig, StatsigUser};
use tokio;

#[tokio::main]
async fn main() {
    Statsig::initialize("secret-key").await;

    let user = StatsigUser::with_user_id("a-user".to_string());

    let passes_gate =  Statsig::check_gate(&user, "a_gate").ok().unwrap_or(false);
    if passes_gate {
        // Show cool new feature
    }
}

Dependencies

~12–25MB
~344K SLoC