Procházet zdrojové kódy

fixed warp example

Ian před 3 roky
rodič
revize
39b77cd663

+ 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;