#![forbid(unsafe_code)]
#![cfg_attr(not(feature = "std"), no_std)]
#![warn(rust_2018_idioms, unreachable_pub)]
#![warn(clippy::pedantic)]
#![allow(
clippy::module_name_repetitions,
clippy::missing_errors_doc,
// Some Core methods take `&self` for architectural consistency (they're
// conceptually Core methods even if they don't read self state directly,
// since the state lives in CoreState behind self.state.lock()). The lint
// would force them into associated fns, breaking the consistent API.
clippy::unused_self,
// doc_markdown false-positives on protocol identifiers like `T`, `JS`, etc.
clippy::doc_markdown,
)]
mod batch;
pub mod boundary;
pub mod clock;
pub mod handle;
pub mod message;
pub mod node;
pub(crate) mod op_state;
pub mod topology;
pub use batch::BatchGuard;
pub use boundary::{BindingBoundary, CleanupTrigger, DepBatch, FnEmission, FnResult};
pub use clock::{monotonic_ns, wall_clock_ns};
pub use handle::{FnId, HandleId, LockId, NodeId, NO_HANDLE};
pub use message::{Message, Messages};
pub use node::{
Core, EqualsMode, NodeFnOrOp, NodeKind, NodeOpts, NodeRegistration, OperatorOp, OperatorOpts,
PausableMode, PauseError, RegisterError, ResumeReport, SetDepsError, SetPausableModeError,
Sink, Subscription, TerminalKind, UpError, WeakCore,
};
pub use topology::{TopologyEvent, TopologySink, TopologySubscription};