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
27
28
29
#![recursion_limit = "256"]
#[cfg(test)]
mod tests;
pub mod core;
pub mod macros;
pub mod prelude {
pub use crate::core::prelude::*;
}
use prelude::*;
#[cfg(target_arch = "wasm32")]
#[macro_use]
pub mod wasm;
#[cfg(not(target_arch = "wasm32"))]
pub mod server;
pub async fn _run<Comp, Msg>(_root: Comp)
where
Comp: Component<Msg>,
Msg: Clone + 'static,
{
#[cfg(target_arch = "wasm32")]
App::new(_root.into()).run().await;
}