wip: move examples around
This commit is contained in:
1 parent
269e81b0fd
commit
304259d818
24 files changed
+81
-71
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -356,7 +356,9 @@ impl ToTokens for ToToksCtx<&TextNode> {
|
||||
fn to_tokens(&self, tokens: &mut TokenStream2) {
|
||||
let mut token_stream = TokenStream2::new();
|
||||
self.recurse(&self.inner.0).to_tokens(&mut token_stream);
|
||||
tokens.append_all(quote! {dioxus::builder::text3(bump, format_args_f!(#token_stream))});
|
||||
tokens.append_all(quote! {
|
||||
__cx.text(format_args_f!(#token_stream))
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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"]
|
||||
@@ -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>>,
|
||||
|
||||
|
||||
@@ -7,4 +7,4 @@ edition = "2018"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
dioxus-core = { path = "../core" }
|
||||
dioxus-core = { path = "../../packages/core", version = "*" }
|
||||
@@ -1,2 +1,2 @@
|
||||
mod usestate;
|
||||
pub use usestate::{use_state, UseState};
|
||||
pub use usestate::use_state;
|
||||
Reference in new issue
Block a user