Add axum crate

This commit is contained in:
Ethan Girouard 2024-03-01 12:26:23 -05:00
parent 4f999e7338
commit 213e43e835
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146
2 changed files with 21 additions and 2 deletions

21
Cargo.lock generated
View File

@ -439,7 +439,11 @@ dependencies = [
"pin-project-lite", "pin-project-lite",
"rustversion", "rustversion",
"serde", "serde",
"serde_json",
"serde_path_to_error",
"serde_urlencoded",
"sync_wrapper", "sync_wrapper",
"tokio",
"tower", "tower",
"tower-layer", "tower-layer",
"tower-service", "tower-service",
@ -1829,6 +1833,7 @@ dependencies = [
"actix-identity", "actix-identity",
"actix-session", "actix-session",
"actix-web", "actix-web",
"axum",
"cfg-if", "cfg-if",
"console_error_panic_hook", "console_error_panic_hook",
"diesel", "diesel",
@ -2657,6 +2662,16 @@ dependencies = [
"serde", "serde",
] ]
[[package]]
name = "serde_path_to_error"
version = "0.1.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebd154a240de39fdebcf5775d2675c204d7c13cf39a4c697be6493c8e734337c"
dependencies = [
"itoa",
"serde",
]
[[package]] [[package]]
name = "serde_qs" name = "serde_qs"
version = "0.12.0" version = "0.12.0"
@ -2806,9 +2821,9 @@ dependencies = [
[[package]] [[package]]
name = "smallvec" name = "smallvec"
version = "1.11.2" version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970" checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7"
[[package]] [[package]]
name = "socket2" name = "socket2"
@ -3075,8 +3090,10 @@ dependencies = [
"futures-util", "futures-util",
"pin-project", "pin-project",
"pin-project-lite", "pin-project-lite",
"tokio",
"tower-layer", "tower-layer",
"tower-service", "tower-service",
"tracing",
] ]
[[package]] [[package]]

View File

@ -42,6 +42,7 @@ actix-session = { version = "0.9.0", features = ["redis-rs-session"], optional =
pbkdf2 = { version = "0.12.2", features = ["simple"], optional = true } pbkdf2 = { version = "0.12.2", features = ["simple"], optional = true }
futures = { version = "0.3.30", default-features = false, optional = true } futures = { version = "0.3.30", default-features = false, optional = true }
tokio = { version = "1", optional = true } tokio = { version = "1", optional = true }
axum = { version = "0.6.4", optional = true }
[features] [features]
csr = ["leptos/csr", "leptos_meta/csr", "leptos_router/csr"] csr = ["leptos/csr", "leptos_meta/csr", "leptos_router/csr"]
@ -64,6 +65,7 @@ ssr = [
"pbkdf2", "pbkdf2",
"futures", "futures",
"tokio", "tokio",
"axum",
] ]
# Defines a size-optimized profile for the WASM bundle in release mode # Defines a size-optimized profile for the WASM bundle in release mode