mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-09-20 22:31:58 +00:00
Make incremental a cfg feature. (#1409)
* Make incremental a cfg feature. * Make the incremental feature default.
This commit is contained in:
parent
1ba6ca39e3
commit
392c744ad1
2 changed files with 8 additions and 1 deletions
|
@ -17,7 +17,7 @@ rustc-hash = "1.1.0"
|
||||||
lru = "0.10.0"
|
lru = "0.10.0"
|
||||||
log = "0.4.13"
|
log = "0.4.13"
|
||||||
http = "0.2.9"
|
http = "0.2.9"
|
||||||
tokio = { version = "1.28", features = ["full"] }
|
tokio = { version = "1.28", features = ["full"], optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
dioxus = { workspace = true }
|
dioxus = { workspace = true }
|
||||||
|
@ -29,3 +29,7 @@ argh = "0.1.4"
|
||||||
serde = "1.0.120"
|
serde = "1.0.120"
|
||||||
serde_json = "1.0.61"
|
serde_json = "1.0.61"
|
||||||
fs_extra = "1.2.0"
|
fs_extra = "1.2.0"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["incremental"]
|
||||||
|
incremental = ["dep:tokio"]
|
||||||
|
|
|
@ -3,8 +3,11 @@
|
||||||
mod cache;
|
mod cache;
|
||||||
pub mod config;
|
pub mod config;
|
||||||
mod fs_cache;
|
mod fs_cache;
|
||||||
|
#[cfg(feature = "incremental")]
|
||||||
pub mod incremental;
|
pub mod incremental;
|
||||||
|
#[cfg(feature = "incremental")]
|
||||||
mod incremental_cfg;
|
mod incremental_cfg;
|
||||||
|
|
||||||
pub mod renderer;
|
pub mod renderer;
|
||||||
pub mod template;
|
pub mod template;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue