Skip to main content

Crate philiprehberger_feature_flags

Crate philiprehberger_feature_flags 

Source
Expand description

In-memory feature flag evaluation with rollout, environment, targeting, and A/B variant support.

§Example

use philiprehberger_feature_flags::{FeatureFlags, FlagConfig};

let mut flags = FeatureFlags::new();
flags.set("dark_mode", FlagConfig::new(true));
assert!(flags.is_enabled("dark_mode"));

Structs§

Context
Evaluation context for feature flag checks.
FeatureFlags
In-memory feature flag store.
FlagConfig
Configuration for a single feature flag.