Reactivity phase 1

This commit is contained in:
2026-03-19 20:18:13 -04:00
parent 7b3c2fcbef
commit 9594c38714
5 changed files with 446 additions and 0 deletions

11
lib/reactivity/src/lib.rs Normal file
View File

@@ -0,0 +1,11 @@
//! Fine-grained reactivity primitives for RUIN.
//!
//! This crate is intentionally layered on top of `ruin-runtime`. The reactive graph is
//! single-threaded and designed to live on a runtime-managed thread, while async work feeds it
//! from the edges by updating state or emitting events.
mod id;
mod reactor;
pub use id::NodeId;
pub use reactor::{ReactCycleError, Reactor, current};