浏览代码

leave hotreload

Jonathan Kelley 2 年之前
父节点
当前提交
60a873a49c
共有 2 个文件被更改,包括 3 次插入4 次删除
  1. 0 1
      Cargo.toml
  2. 3 3
      packages/desktop/Cargo.toml

+ 0 - 1
Cargo.toml

@@ -34,7 +34,6 @@ members = [
     # Full project examples
     # Full project examples
     "examples/tailwind",
     "examples/tailwind",
     "examples/PWA-example",
     "examples/PWA-example",
-    # "examples/ios_demo",
     # Playwrite tests
     # Playwrite tests
     "playwrite-tests/liveview",
     "playwrite-tests/liveview",
     "playwrite-tests/web",
     "playwrite-tests/web",

+ 3 - 3
packages/desktop/Cargo.toml

@@ -15,7 +15,7 @@ keywords = ["dom", "ui", "gui", "react"]
 dioxus-core = { workspace = true, features = ["serialize"] }
 dioxus-core = { workspace = true, features = ["serialize"] }
 dioxus-html = { workspace = true, features = ["serialize", "native-bind"] }
 dioxus-html = { workspace = true, features = ["serialize", "native-bind"] }
 dioxus-interpreter-js = { workspace = true }
 dioxus-interpreter-js = { workspace = true }
-# dioxus-hot-reload = { workspace = true, optional = true }
+dioxus-hot-reload = { workspace = true, optional = true }
 
 
 serde = "1.0.136"
 serde = "1.0.136"
 serde_json = "1.0.79"
 serde_json = "1.0.79"
@@ -51,12 +51,12 @@ objc_id = "0.1.1"
 core-foundation = "0.9.3"
 core-foundation = "0.9.3"
 
 
 [features]
 [features]
-default = ["tokio_runtime"]
+default = ["tokio_runtime", "hot-reload"]
 tokio_runtime = ["tokio"]
 tokio_runtime = ["tokio"]
 fullscreen = ["wry/fullscreen"]
 fullscreen = ["wry/fullscreen"]
 transparent = ["wry/transparent"]
 transparent = ["wry/transparent"]
 tray = ["wry/tray"]
 tray = ["wry/tray"]
-# hot-reload = ["dioxus-hot-reload"]
+hot-reload = ["dioxus-hot-reload"]
 
 
 [dev-dependencies]
 [dev-dependencies]
 dioxus-core-macro = { workspace = true }
 dioxus-core-macro = { workspace = true }