1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pub mod container;
pub mod deferred;

#[macro_use]
pub mod inject;

pub use waiter_codegen::*;

pub use container::*;
pub use deferred::*;
pub use inject::*;
use std::any::Any;


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

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


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

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