#![cfg_attr(not(feature = "std"), no_std)]
extern crate alloc;
#[cfg(feature = "collections")]
pub use zwire_collections as collections;
#[cfg(feature = "core")]
pub use zwire_core as core;
#[cfg(feature = "protocol")]
pub use zwire_protocol as protocol;
#[cfg(feature = "tx")]
pub use zwire_tx as tx;
#[cfg(all(feature = "core", feature = "collections"))]
mod reactive_collection;
#[cfg(all(feature = "core", feature = "collections"))]
pub use reactive_collection::ReactiveCollection;
pub mod prelude {
#[cfg(all(feature = "core", feature = "collections"))]
pub use crate::ReactiveCollection;
#[cfg(feature = "collections")]
pub use crate::collections::{AcceptAll, Collection, TopKViewId};
#[cfg(feature = "core")]
pub use crate::core::{
Atom, AtomOptions, Computed, ComputedOptions, CoreError, EvalContext, HookGuard, NodeId,
Scope, ScopeMode, Signal, Subscription, WeakScope,
};
#[cfg(feature = "sync")]
pub use crate::core::{
SyncAtom, SyncAtomOptions, SyncCleanupFn, SyncComputed, SyncComputedOptions,
SyncEvalContext, SyncHookGuard, SyncScope, SyncSignal, SyncSubscription, WeakSyncScope,
};
#[cfg(feature = "protocol")]
pub use crate::protocol::{
ExternalSource, HydratedState, InspectorHook, PatchOrigin, StatePatch, SyncAdapter,
SyncBridge, SyncBridgeOptions, WireCodec, WireValue, attach_inspector, create_sync_bridge,
dehydrate, dehydrate_json, from_external_source, hydratable, hydrate, hydrate_json,
};
#[cfg(feature = "tx")]
pub use crate::tx::{Draft, DraftBase, DraftError, OptimisticGuard, OptimisticLayer};
}
#[cfg(all(
doctest,
feature = "std",
feature = "core",
feature = "tx",
feature = "collections",
feature = "protocol"
))]
#[doc = include_str!("../README.md")]
mod readme_doctests {}