7 releases
0.3.0 | Apr 17, 2024 |
---|---|
0.2.5 | Mar 29, 2024 |
0.2.4 | Jan 11, 2024 |
0.2.3 | Jul 13, 2023 |
0.1.0 | Dec 9, 2022 |
#432 in Web programming
2,758 downloads per month
295KB
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
~389K SLoC