-8
src/main.rs
-8
src/main.rs
···
1
-
2
#[cfg(feature = "ssr")]
3
#[tokio::main]
4
async fn main() {
···
30
.await
31
.unwrap();
32
}
33
-
34
-
#[cfg(not(feature = "ssr"))]
35
-
pub fn main() {
36
-
// no client-side main function
37
-
// unless we want this to work with e.g., Trunk for pure client-side testing
38
-
// see lib.rs for hydration function instead
39
-
}