statsig-rust 0.15.1

Statsig Rust SDK for usage in multi-user server environments.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
fn main() -> Result<(), Box<dyn std::error::Error>> {
    if std::env::var("STATSIG_BUILD_PROTO").unwrap_or_default() == "true" {
        tonic_prost_build::Config::new()
            .out_dir("src/specs_response")
            .compile_protos(
                &["../api-interface-definitions/protos/config_specs.proto"],
                &["../api-interface-definitions/protos"],
            )?;
    }

    Ok(())
}