Statsig for Rust
use ;
use tokio;
async
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
}
}