Fix more examples to work with dioxus-native (#5179)
* Enable native for hotdog, file-explorer, and bluetooth-scanner examples Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix crash in calculator example Signed-off-by: Nico Burns <nico@nicoburns.com> * Add config macro for native * Add Config struct to dioxus-native * Re-export dioxus-native as dioxus::native * Fix calculator example to work with dioxus-native * Fix calculator_mutable example to work with dioxus-native --------- Signed-off-by: Nico Burns <nico@nicoburns.com>
This commit is contained in:
1 parent
8aefb2a1e2
commit
35e289fe28
13 files changed
+93
-18
No files matched your search
+2
-1
@@ -461,6 +461,7 @@ ciborium = { workspace = true, optional = true }
|
||||
base64 = { workspace = true, optional = true }
|
||||
http-range = { version = "0.1.5" }
|
||||
wgpu = { workspace = true, optional = true }
|
||||
winit = { workspace = true, optional = true }
|
||||
ouroboros = { version = "*", optional = true }
|
||||
wasm-splitter = { workspace = true }
|
||||
|
||||
@@ -516,7 +517,7 @@ tokio = { version = "1.48", features = ["full"] }
|
||||
[features]
|
||||
default = ["desktop"]
|
||||
desktop = ["dioxus/desktop"]
|
||||
native = ["dioxus/native"]
|
||||
native = ["dioxus/native", "winit"]
|
||||
liveview = ["dioxus/liveview"]
|
||||
server = ["dioxus/server"]
|
||||
mobile = ["dioxus/mobile"]
|
||||
|
||||
Reference in new issue
Block a user