From 8c4be4599b97a490df48e1de62d82f9c15b3b32c Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Thu, 17 Nov 2022 00:20:55 -0500 Subject: [PATCH] feat: Add prelude --- src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index da0928d..e26bc56 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -26,3 +26,15 @@ pub use async_trait; pub use enum_dispatch; /// Reexport `flume`, as this appears in the public api pub use flume; + +/// Commonly used types from this library +pub mod prelude { + pub use crate::{ + async_actor, + executor::Executor, + sync_actor, + traits::{Actor, Event, EventConsumer, EventProducer}, + types::CompletionToken, + util::{AsyncActor, AsyncActorError, SyncActor, SyncActorError, WrappedEvent}, + }; +} -- 2.45.2