The brief

Cloudflare has released an official Rust SDK for Flagship feature flags. It integrates through OpenFeature, so an async Rust server can evaluate a flag with the same targeting rules and percentage rollouts available in other Flagship SDKs. The example in the announcement constructs a provider, registers it with OpenFeature, adds a targeting key to the evaluation context, and reads a boolean flag value.

Evaluation uses HTTP by default. Applications can switch to local evaluation, which downloads flag definitions and evaluates them in-process instead of making a network request for each decision. The SDK also supports structured evaluation context, an optional response cache, and logging and telemetry hooks. Cloudflare lists Rust 1.88 or later and a Tokio runtime as requirements. The installation command below comes directly from its changelog; consult the linked Rust SDK documentation for configuration and credentials.

bash
cargo add cloudflare-flagship
Verify this snippet at the source ↗