liteguard 0.2.20260314

Feature guards, observability, and security response in a single import — evaluated locally, zero network overhead per check
Documentation
//! Liteguard SDK for Rust
//!
//! ```no_run
//! use liteguard::{Client, ClientOptions, Options, Properties};
//!
//! #[tokio::main]
//! async fn main() {
//!     let client = Client::init("pckid-...", ClientOptions {
//!         environment: Some("production".into()),
//!         ..Default::default()
//!     }).await.unwrap();
//!
//!     let scope = client.create_scope(
//!         Properties::new()
//!         .set("user_id", "user-123")
//!         .set("plan", "pro")
//!     );
//!
//!     if scope.is_open_with_options("payments.checkout", &Options {
//!         properties: Properties::new(),
//!         fallback: None,
//!         disable_measurement: false,
//!     }) {
//!         // feature is enabled
//!     }
//! }
//! ```

pub mod client;
pub mod evaluation;
pub mod types;

pub use client::{Client, Scope};
pub use types::{
    ClientOptions, GetGuardsRequest, GetGuardsResponse, Guard, InitError, Operator, Options,
    Properties, PropertyValue, ProtectedContext, Rule, SendUnadoptedGuardsRequest,
    SendUnadoptedGuardsResponse, Signal, TraceContext,
};