Zero Dependencies • Type Safe • Thread Safe
State Management Reimagined
A bleeding-edge Rust state management library—engineered for performance, safety, and developer joy.
A bleeding-edge Rust state management library—engineered for performance, safety, and developer joy.
Built with RwLock for bulletproof concurrent access.
Pure stdlib implementation with minimal runtime cost.
Leveraging Rust's type system for maximum reliability.
A high-performance state management library for Rust, designed with safety and simplicity in mind.
use statia::{State, StateManager};
// Atomic state with reactive subscriptions
let counter = State::new(0);
counter.set(42);
assert_eq!(counter.get(), 42);
// Powerful state transformations
counter.map(|x| x * 2)
.subscribe(|value| {
println!("Transformed: {}", value);
});
Easy composition of complex state interactions.
Designed for large-scale application architectures.
Adaptable to various state management patterns.
Minimal overhead with efficient state updates.