Ian пре 3 година
родитељ
комит
39b77cd663
2 измењених фајлова са 5 додато и 2 уклоњено
  1. 5 0
      packages/liveview/Cargo.toml
  2. 0 2
      packages/liveview/examples/warp.rs

+ 5 - 0
packages/liveview/Cargo.toml

@@ -30,5 +30,10 @@ dioxus-core = { path = "../core", features = ["serialize"] }
 # warp
 warp = { version = "0.3", optional = true }
 
+[dev-dependencies]
+dioxus-liveview = { path = "./", features = ["warp"] }
+warp = "0.3"
+
+
 [features]
 default = []

+ 0 - 2
packages/liveview/examples/warp.rs

@@ -1,5 +1,3 @@
-#![cfg(feature = "warp")]
-
 use dioxus_core::{Element, LazyNodes, Scope};
 use dioxus_liveview as liveview;
 use warp::ws::Ws;