Browse Source

add required features to fix tests

Evan Almloff 2 năm trước cách đây
mục cha
commit
c238c22eb5
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      packages/router/Cargo.toml

+ 5 - 1
packages/router/Cargo.toml

@@ -36,11 +36,15 @@ web = ["gloo", "web-sys", "wasm-bindgen", "gloo-utils", "js-sys"]
 [dev-dependencies]
 [dev-dependencies]
 dioxus = { path = "../dioxus" }
 dioxus = { path = "../dioxus" }
 dioxus-ssr = { path = "../ssr" }
 dioxus-ssr = { path = "../ssr" }
-dioxus-router = { path = ".", features = ["ssr"] }
 criterion = { verison = "0.5", features = ["async_tokio", "html_reports"] }
 criterion = { verison = "0.5", features = ["async_tokio", "html_reports"] }
 
 
+[[example]]
+name = "static_generation"
+required-features = ["ssr"]
+
 [[bench]]
 [[bench]]
 name = "incremental"
 name = "incremental"
+required-features = ["ssr"]
 harness = false
 harness = false
 
 
 [target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
 [target.'cfg(not(target_family = "wasm"))'.dev-dependencies]