Skip to main content

Crate zwire

Crate zwire 

Source
Expand description

zwire — zero-dependency, #![no_std] (alloc) transactional reactive state engine for Rust.

Umbrella facade re-exporting:

  • core (zwire-core) — Zero-global scoped push-pull arena & deadlock-free SyncScope
  • tx (zwire-tx) — Rebaseable OptimisticLayer, RAII OptimisticGuard, atomic try_settle, and STM read-verify Draft
  • collections (zwire-collections) — Exact 2-level Chunked B-Tree + O(1) Top-K
  • protocol (zwire-protocol) — Zero-dep JSON WireValue, out-of-order hydration, ExternalSource, SyncBridge, and InspectorHook compatible with @zwire/core
  • ReactiveCollection — First-class reactive top_k_signal(k) bridging collections + core

Re-exports§

pub use zwire_collections as collections;
pub use zwire_core as core;
pub use zwire_protocol as protocol;
pub use zwire_tx as tx;

Modules§

optics
Monomorphized structural projections into a reactive atom.
prelude
Convenient re-exports of the most commonly used zwire primitives.
resource
Executor-agnostic #![no_std] asynchronous reactive Resource<T, E, K>.
store
Fine-grained reactive key-value stores and mutable-draft projections (#![no_std]).

Structs§

PureReactiveCollection
High-throughput reactive collection backed directly by zwire_collections::KeyedCollection (BTreeSet<(S, K, u32)> ordered index with cached (S, K) Top-K boundary pruning).
ReactiveCollection
Reactive bridge wrapping zwire_collections::Collection with zwire_core::Scope.
RowEdit
A detached edit of a keyed collection. Updating an item’s key replaces any displaced row.
SyncPureReactiveCollection
Thread-safe high-throughput reactive collection backed directly by zwire_collections::KeyedCollection (BTreeSet<(S, K, u32)> with cached (S, K) Top-K boundary pruning).
SyncReactiveCollection
Thread-safe incremental reactive collection backed by a 2-level Chunked Sorted Block Index with O(log N) mutations and O(1) Top-K boundary pruning.
TransactionalCollection
Copy-on-write collection snapshots for draft isolation and replayable optimistic edits.