Make incremental a cfg feature. (#1409)

* Make incremental a cfg feature.

* Make the incremental feature default.
This commit is contained in:
Jay Graves 2023-09-01 08:55:44 -06:00 committed by GitHub
parent 1ba6ca39e3
commit 392c744ad1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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"]

View file

@ -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;