comet/
lib.rs

1#![recursion_limit = "256"]
2
3#[cfg(not(target_arch = "wasm32"))]
4#[macro_use]
5extern crate log;
6
7#[cfg(target_arch = "wasm32")]
8extern crate log;
9
10#[cfg(test)]
11mod tests;
12
13pub mod core;
14
15pub mod macros;
16
17pub mod prelude {
18    pub use crate::core::prelude::Rc;
19    pub use crate::core::prelude::*;
20}
21
22use prelude::*;
23
24#[cfg(target_arch = "wasm32")]
25#[macro_use]
26pub mod wasm;
27
28#[cfg(not(target_arch = "wasm32"))]
29pub mod server;
30
31#[cfg(target_arch = "wasm32")]
32pub async fn _run<Comp, Msg>(_root: Comp) -> App<Comp, Msg>
33where
34    Comp: Component<Msg>,
35    Msg: Clone + 'static,
36{
37    App::new(Shared::from(_root))
38}