simplify server package features

This commit is contained in:
Evan Almloff committed 2023-04-01 17:05:44 -05:00
1 parent c6992c7032
commit 6a51f8998d
9 files changed
+15 -11

No files matched your search

@@ -17,5 +17,6 @@ tower-http = { version = "0.4.0", features = ["fs"], optional = true }
http = { version = "0.2.9", optional = true }
[features]
ssr = ["axum", "tokio", "dioxus-server/ssr", "dioxus-server/axum", "tower-http", "http"]
default = ["web"]
ssr = ["axum", "tokio", "dioxus-server/axum", "tower-http", "http"]
web = ["dioxus-web", "dioxus-router/web"]
@@ -2,7 +2,7 @@
//!
//! ```sh
//! dioxus build --features web
//! cargo run --features ssr
//! cargo run --features ssr --no-default-features
//! ```
#![allow(non_snake_case)]