start Actix work

This commit is contained in:
Greg Johnston 2024-01-04 17:23:09 -05:00
parent db4158f5c3
commit 60efaefff4
3 changed files with 6 additions and 1 deletions

View file

@ -20,6 +20,7 @@ leptos = { path = "../../leptos", features = ["nightly"] }
leptos_actix = { path = "../../integrations/actix", optional = true }
leptos_meta = { path = "../../meta", features = ["nightly"] }
leptos_router = { path = "../../router", features = ["nightly"] }
server_fn = { path = "../../server_fn", features = ["cbor"] }
log = "0.4.17"
simple_logger = "4.0.0"
gloo = { git = "https://github.com/rustwasm/gloo" }

View file

@ -12,9 +12,11 @@ actix-http = "3"
actix-web = "4"
futures = "0.3"
leptos = { workspace = true, features = ["ssr"] }
leptos_macro = { workspace = true, features = ["actix"] }
leptos_meta = { workspace = true, features = ["ssr"] }
leptos_router = { workspace = true, features = ["ssr"] }
leptos_integration_utils = { workspace = true }
server_fn = { workspace = true, features = ["actix"] }
serde_json = "1"
parking_lot = "0.12.1"
regex = "1.7.0"

View file

@ -64,8 +64,10 @@ reqwest = { version = "0.11", default-features = false, optional = true, feature
] }
[features]
actix = ["dep:actix-web", "dep:send_wrapper"]
default = ["url", "json"]
actix = ["ssr", "dep:actix-web", "dep:send_wrapper"]
axum = [
"ssr",
"dep:axum",
"dep:hyper",
"dep:http-body-util",