1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use std::any::Any;

pub use container::*;
pub use deferred::*;
pub use waiter_codegen::*;

pub mod container;
pub mod deferred;

#[macro_use]
pub mod inject;

#[cfg(feature = "async")]
pub type Wrc<T> = std::sync::Arc<T>;

#[cfg(not(feature = "async"))]
pub type Wrc<T> = std::rc::Rc<T>;


#[cfg(feature = "async")]
pub type RcAny = Wrc<dyn Any + Send + Sync>;

#[cfg(not(feature = "async"))]
pub type RcAny = Wrc<dyn Any>;