#[cfg(test)]
use rustdv_vpi_stubs as _;
pub mod clock;
pub mod combinators;
pub mod executor;
pub mod handle;
pub mod log;
pub mod path;
pub mod phase;
pub mod queue;
pub mod rng;
pub mod simulator_trace;
pub mod sync;
pub mod testing;
pub mod time;
pub mod triggers;
pub mod verilator_trace;
pub use clock::Clock;
pub use combinators::{Either, TimeoutError, first2, join_all, join2, with_timeout};
pub use executor::{Executor, TaskError, TaskHandle, TaskId, TaskState, spawn, spawn_named};
pub use handle::{
AggregateHandle, HierarchyHandle, LogicHandle, RealHandle, SimHandle, StringHandle,
};
pub use path::RustdvPath;
pub use phase::{next_time_step, read_only, read_write, service_read_only};
pub use queue::Queue;
pub use rng::Rng;
pub use sync::{Event, Lock, LockGuard};
pub use time::{SimDuration, sim_time_ns, sim_time_steps};
pub use triggers::{NullTrigger, Timer};
pub use rustdv_gpi::{BigUint, HandleError, Logic, LogicArray, ValueError};
pub fn init() -> Executor {
phase::init_hub();
executor::init()
}