zenmanage 1.0.0

Official Zenmanage feature flags SDK for Rust
Documentation
//! Zenmanage Rust SDK.
//!
//! This crate provides async feature-flag evaluation with local rule caching,
//! deterministic percentage rollouts, and optional web framework integrations.

#![forbid(unsafe_code)]
#![warn(missing_docs)]

// Compiles the README's examples as part of the tests.
#[cfg(doctest)]
#[doc = include_str!("../README.md")]
struct ReadmeDoctests;

/// The HTTP client for the Zenmanage API.
pub mod api_client;
/// Caching of the rules payload between loads.
pub mod cache;
/// SDK configuration.
pub mod config;
/// The context flags are evaluated for.
pub mod context;
/// Fallback values for flags that can't be resolved.
pub mod defaults;
/// Errors returned by the SDK.
pub mod errors;
/// Flags and their typed values.
pub mod flag;
/// Loading and evaluating flags.
pub mod flag_manager;
/// Percentage rollout bucketing.
pub mod rollout;
/// Targeting rule evaluation.
pub mod rule_engine;
/// The shapes of the API payloads.
pub mod types;
/// The SDK entry point.
pub mod zenmanage;

#[cfg(test)]
mod test_server;

/// Helpers that share the SDK with a web framework's handlers.
#[cfg(any(feature = "actix", feature = "axum", feature = "rocket"))]
pub mod integrations;

pub use config::{CacheBackendType, Config, ConfigBuilder};
pub use context::{Attribute, Context, ContextValue};
pub use defaults::DefaultsCollection;
pub use errors::{Result, ZenmanageError};
pub use flag::{Flag, FlagValue};
pub use flag_manager::FlagManager;
pub use zenmanage::Zenmanage;