wip: move examples around

This commit is contained in:
Jonathan Kelley committed 2021-07-11 18:39:45 -04:00
1 parent 269e81b0fd
commit 304259d818
24 files changed
+81 -71

No files matched your search

+3 -9
View File
@@ -11,10 +11,10 @@ description = "Core functionality for Dioxus - a concurrent renderer-agnostic Vi
[dependencies]
# todo: use wast for faster load/compile
dioxus-core-macro = { path="../core-macro", version="0.1.1" }
dioxus-core-macro = { path = "../core-macro", version = "0.1.1" }
# Bumpalo is used as a micro heap backing each component
bumpalo = { version="3.6.0", features=["collections", "boxed"] }
bumpalo = { version = "3.6.0", features = ["collections", "boxed"] }
# custom error type
thiserror = "1"
@@ -29,7 +29,7 @@ longest-increasing-subsequence = "0.1.0"
log = "0.4"
# # Serialize the Edits for use in Webview/Liveview instances
serde = { version="1", features=["derive"], optional=true }
serde = { version = "1", features = ["derive"], optional = true }
# Backs scopes and unique keys
slotmap = "1.0.3"
@@ -38,12 +38,6 @@ appendlist = "1.4.0"
futures-util = "0.3.15"
[dev-dependencies]
dioxus-html = { path="../html" }
dioxus-hooks = { path="../hooks" }
env_logger = "*"
# async-std = { version="1.9.0", features=["attributes"] }
[features]
default = []
serialize = ["slotmap/serde", "serde"]
+3 -3
View File
@@ -43,12 +43,12 @@ pub struct VirtualDom {
/// The index of the root component
/// Should always be the first (gen=0, id=0)
pub(crate) base_scope: ScopeIdx,
pub base_scope: ScopeIdx,
/// All components dump their updates into a queue to be processed
pub(crate) event_queue: EventQueue,
pub event_queue: EventQueue,
pub(crate) tasks: TaskQueue,
pub tasks: TaskQueue,
root_props: std::pin::Pin<Box<dyn std::any::Any>>,