1#![doc = include_str!("../GUIDE.md")]
2#![forbid(unsafe_code)]
3#![deny(missing_docs, missing_debug_implementations)]
4
5extern crate self as eventful_rs;
6
7pub use eventful_rs_macros::{
8 action, asynced, asynchronize, declare_shard, eventful, events, sharded, sharded_main,
9 slint_events,
10};
11
12mod binding;
13pub use binding::*;
14
15mod engine;
16pub use engine::{InvokeError, ShardEventHandle};
17
18pub type DeliveryError = InvokeError;
21
22mod shard_handle;
23pub use shard_handle::*;
24mod connection;
25pub use connection::*;
26mod local_task;
27pub use local_task::{LocalTask, TaskHandle};
28
29pub mod local_rt;
30
31pub mod std_rt;
32
33pub mod task;
34
35#[cfg(feature = "tokio")]
36pub mod tokio_rt;
37
38#[cfg(feature = "tokio")]
39pub mod tokio_local_rt;
40
41#[cfg(feature = "slint")]
42pub mod slint_rt;
43
44mod error;
45pub use error::{ShardError, ShardId};
46mod event;
47pub use event::{Event, EventLabel};
48mod event_loop;
49pub use event_loop::{EventLoop, EventLoopHandle};
50mod eventful;
51pub use eventful::{Eventful, HasEvents};
52mod registry;
53pub use registry::join_all_shards;
54#[cfg(feature = "tokio")]
55pub use registry::join_all_shards_async;
56pub(crate) use registry::register_shard;
57mod report;
58pub use report::{CallbackPanic, set_panic_reporter};
59mod background;
60mod main_loop;
61
62#[doc(hidden)]
63#[path = "builders.rs"]
64pub mod __builders;