13 lines
319 B
Rust
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
|
|
}
|