Explorar o código

fix static generation example compiling

Evan Almloff %!s(int64=2) %!d(string=hai) anos
pai
achega
e883e8d0dd
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      packages/fullstack/examples/static-hydrated/src/main.rs

+ 3 - 0
packages/fullstack/examples/static-hydrated/src/main.rs

@@ -38,6 +38,9 @@ fn main() {
     );
 }
 
+#[cfg(not(any(feature = "web", feature = "ssr")))]
+fn main() {}
+
 #[derive(Clone, Routable, Debug, PartialEq, Serialize, Deserialize)]
 enum Route {
     #[route("/")]