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

#302 in Web programming

Download history 20241/week @ 2024-09-04 24059/week @ 2024-09-11 27307/week @ 2024-09-18 25854/week @ 2024-09-25 28063/week @ 2024-10-02 21870/week @ 2024-10-09 25058/week @ 2024-10-16 26718/week @ 2024-10-23 31707/week @ 2024-10-30 25210/week @ 2024-11-06 30895/week @ 2024-11-13 46637/week @ 2024-11-20 30449/week @ 2024-11-27 51427/week @ 2024-12-04 72859/week @ 2024-12-11 54309/week @ 2024-12-18

220,220 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
~345K SLoC