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 |
#317 in Web programming
131,330 downloads per month
300KB
2K
SLoC
Statsig for Rust
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