Expand description
DeployRamp SDK — Feature flag management for Rust.
§Quick start
use deployramp::{Config, init, flag, close};
fn main() {
init(Config::new("pk_live_abc123")).unwrap();
if flag("new-checkout", None) {
// new checkout flow
}
close();
}Re-exports§
pub use types::Config;pub use types::EvaluationEvent;pub use types::FlagData;pub use types::FlagSegment;pub use types::PerformanceEvent;pub use types::TraitCondition;
Modules§
Functions§
- close
- Shuts down the SDK and clears all state.
- flag
- Evaluates a feature flag and returns whether it is active.
- init
- Initialises the DeployRamp SDK. Fetches flags from the server.
- measure
- Evaluates a feature flag, executes the appropriate branch, measures its execution time, and reports the metric back to DeployRamp.
- report
- Reports an error to DeployRamp. Fire-and-forget.
- set_
traits - Replaces the current global traits.