Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make incremental a cfg feature. #1409

Merged
merged 2 commits into from Sep 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/ssr/Cargo.toml
Expand Up @@ -17,7 +17,7 @@ rustc-hash = "1.1.0"
lru = "0.10.0"
log = "0.4.13"
http = "0.2.9"
tokio = { version = "1.28", features = ["full"] }
tokio = { version = "1.28", features = ["full"], optional = true }

[dev-dependencies]
dioxus = { workspace = true }
Expand All @@ -29,3 +29,7 @@ argh = "0.1.4"
serde = "1.0.120"
serde_json = "1.0.61"
fs_extra = "1.2.0"

[features]
default = ["incremental"]
incremental = ["dep:tokio"]
skabber marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 3 additions & 0 deletions packages/ssr/src/lib.rs
Expand Up @@ -3,8 +3,11 @@
mod cache;
pub mod config;
mod fs_cache;
#[cfg(feature = "incremental")]
pub mod incremental;
#[cfg(feature = "incremental")]
mod incremental_cfg;

pub mod renderer;
pub mod template;

Expand Down