mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 20:53:06 +00:00
simplify server package features
This commit is contained in:
parent
c6992c7032
commit
6a51f8998d
9 changed files with 15 additions and 11 deletions
|
@ -35,7 +35,7 @@ anymap = "0.12.1"
|
|||
|
||||
[features]
|
||||
default = []
|
||||
warp = ["dep:warp", "http-body"]
|
||||
axum = ["dep:axum", "tower-http", "hyper"]
|
||||
salvo = ["dep:salvo", "hyper"]
|
||||
warp = ["dep:warp", "http-body", "ssr"]
|
||||
axum = ["dep:axum", "tower-http", "hyper", "ssr"]
|
||||
salvo = ["dep:salvo", "hyper", "ssr"]
|
||||
ssr = ["server_fn/ssr", "tokio", "dioxus-ssr"]
|
||||
|
|
|
@ -15,5 +15,6 @@ tokio = { version = "1.27.0", features = ["full"], optional = true }
|
|||
serde = "1.0.159"
|
||||
|
||||
[features]
|
||||
ssr = ["axum", "tokio", "dioxus-server/ssr", "dioxus-server/axum"]
|
||||
default = ["web"]
|
||||
ssr = ["axum", "tokio", "dioxus-server/axum"]
|
||||
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)]
|
||||
|
|
|
@ -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)]
|
||||
|
|
|
@ -14,5 +14,6 @@ serde = "1.0.159"
|
|||
salvo = { version = "0.37.9", optional = true }
|
||||
|
||||
[features]
|
||||
ssr = ["salvo", "tokio", "dioxus-server/ssr", "dioxus-server/salvo"]
|
||||
default = ["web"]
|
||||
ssr = ["salvo", "tokio", "dioxus-server/salvo"]
|
||||
web = ["dioxus-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)]
|
||||
|
|
|
@ -14,5 +14,6 @@ serde = "1.0.159"
|
|||
warp = { version = "0.3.3", optional = true }
|
||||
|
||||
[features]
|
||||
ssr = ["warp", "tokio", "dioxus-server/ssr", "dioxus-server/warp"]
|
||||
default = ["web"]
|
||||
ssr = ["warp", "tokio", "dioxus-server/warp"]
|
||||
web = ["dioxus-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)]
|
||||
|
|
Loading…
Reference in a new issue