#featureflag #evaluator #context

featureflag

Runtime feature flagging for Rust

4 releases

Uses new Rust 2024

0.0.3 Apr 3, 2025
0.0.2 Apr 3, 2025
0.0.1 Apr 2, 2025
0.0.0 Feb 27, 2025

#15 in #evaluator

Download history 125/week @ 2025-02-24 26/week @ 2025-03-03 2/week @ 2025-03-10 368/week @ 2025-03-31 47/week @ 2025-04-07

415 downloads per month
Used in featureflag-test

Apache-2.0

47KB
1K SLoC

Feature flagging facade for Rust.

This library provides a flexible and extensible way to control feature flags in Rust applications.

The core trait of this library is the Evaluator, which is used to evaluate feature flags at runtime.

The context! macro and Context type can be in evaluators to provide contextual information for feature flag evaluation, such as user ID and session ID.

The is_enabled! macro is the primary way to check if a feature is enabled. This macro takes a feature name and a default value, and returns a boolean indicating whether the feature is enabled or not. Alternatively, the feature! macro can be used to store a Feature is a variable or constant, or the Feature::new or Feature::new_with_default_fn methods can be used directly to create new feature flags at runtime.

Dependencies

~99KB