فهرست منبع

fix: only enable liveview drivers if feature is present

Jonathan Kelley 3 سال پیش
والد
کامیت
541d67dcfa
2فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 2 0
      packages/liveview/examples/axum.rs
  2. 2 0
      packages/liveview/examples/warp.rs

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

@@ -1,3 +1,5 @@
+#![cfg(feature = "axum")]
+
 use axum::{extract::ws::WebSocketUpgrade, response::Html, routing::get, Router};
 use dioxus_core::{Element, LazyNodes, Scope};
 

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

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