6 releases

new 0.2.5 Mar 29, 2024
0.2.4 Jan 11, 2024
0.2.3 Jul 13, 2023
0.2.1 Jan 31, 2023
0.1.0 Dec 9, 2022

#1814 in Development tools

Download history 1374/week @ 2023-12-08 855/week @ 2023-12-15 1070/week @ 2023-12-22 738/week @ 2023-12-29 1666/week @ 2024-01-05 1364/week @ 2024-01-12 1837/week @ 2024-01-19 2038/week @ 2024-01-26 2866/week @ 2024-02-02 2446/week @ 2024-02-09 2387/week @ 2024-02-16 2800/week @ 2024-02-23 3143/week @ 2024-03-01 3026/week @ 2024-03-08 1806/week @ 2024-03-15 509/week @ 2024-03-22

9,239 downloads per month

ISC license

295KB
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–27MB
~400K SLoC