diff --git a/Cargo.toml b/Cargo.toml index 6813226d7..d265c0644 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ serde = { version = "1.0.130", features = ["derive"] } im-rc = "15.0.0" fxhash = "0.2.1" anyhow = "1.0.42" -reqwest = "0.11.4" +# reqwest = "0.11.4" serde_json = "1.0.68" simple_logger = "1.13.0" diff --git a/README.md b/README.md index 4c0354f18..bb7e60cd6 100644 --- a/README.md +++ b/README.md @@ -65,12 +65,11 @@ Dioxus can be used to deliver webapps, desktop apps, static sites, liveview apps If you know React, then you already know Dioxus. ### Unique features: -- Incredible inline documentation. Supports hover and guides for all HTML elements, listeners, and events. -- Templates are "constified" at compile time. Nodes that don't change will won't be diffed. -- Custom bump-allocator backing for all components. Nearly 0 allocations for steady-state components. -- Starting a new app takes zero templates or special tools - get a new app running in just seconds. -- Desktop apps running natively (no Electron!) in less than 10 lines of code. - The most ergonomic and powerful state management of any Rust UI toolkit. +- Desktop apps running natively (no Electron!) in less than 10 lines of code. +- Starting a new app takes zero templates or special tools - get a new app running in just seconds. +- Incredible inline documentation. Supports hover and guides for all HTML elements, listeners, and events. +- Custom bump-allocator backing for all components. Nearly 0 allocations for steady-state components. - Multithreaded asynchronous coroutine scheduler for powerful async code. - And more! Read the full release post here. diff --git a/packages/core/Cargo.toml b/packages/core/Cargo.toml index 82cc9396f..4d320ea7c 100644 --- a/packages/core/Cargo.toml +++ b/packages/core/Cargo.toml @@ -22,7 +22,7 @@ longest-increasing-subsequence = "0.1.0" # internall used log = { version = "0.4", features = ["release_max_level_off"] } -futures-util = "0.3.15" +futures-util = { version = "0.3.15", no_default_features = true } smallvec = "1.6.1" @@ -51,7 +51,7 @@ simple_logger = "1.13.0" dioxus-core-macro = { path = "../core-macro", version = "0.1.2" } [features] -default = ["serialize"] +default = [] serialize = ["serde", "serde_repr"] [[bench]] diff --git a/packages/core/examples/tasks.rs b/packages/core/examples/tasks.rs new file mode 100644 index 000000000..f328e4d9d --- /dev/null +++ b/packages/core/examples/tasks.rs @@ -0,0 +1 @@ +fn main() {} diff --git a/packages/core/src/util.rs b/packages/core/src/util.rs index 63962d792..1ddd3a51c 100644 --- a/packages/core/src/util.rs +++ b/packages/core/src/util.rs @@ -68,7 +68,8 @@ impl Future for YieldNow { /// /// `ScopeId` is a `usize` that is unique across the entire VirtualDOM - but not unique across time. If a component is /// unmounted, then the `ScopeId` will be reused for a new component. -#[derive(serde::Serialize, serde::Deserialize, Copy, Clone, PartialEq, Eq, Hash, Debug)] +#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))] +#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)] pub struct ScopeId(pub usize); /// An Element's unique identifier.