Files
rust_leptos/src/main.rs
2024-09-28 00:52:51 +02:00

13 lines
319 B
Rust

#[cfg(feature = "ssr")]
#[tokio::main]
async fn main() {
rust_leptos::setup::init_app(None).await;
}
#[cfg(not(feature = "ssr"))]
pub fn main() {
// no client-side main function
// unless we want this to work with e.g., Trunk for pure client-side testing
// see lib.rs for hydration function instead
}