Make axum-login crate optional

This commit is contained in:
2024-04-11 17:54:17 -04:00
parent a659564c91
commit 90d645a151
3 changed files with 8 additions and 15 deletions

View File

@ -35,7 +35,7 @@ thiserror = "1.0.57"
tower-sessions = { version = "0.11", default-features = false }
tower-sessions-redis-store = { version = "0.11", optional = true }
async-trait = "0.1.79"
axum-login = "0.14.0"
axum-login = { version = "0.14.0", optional = true }
[patch.crates-io]
gloo-net = { git = "https://github.com/rustwasm/gloo.git", rev = "a823fab7ecc4068e9a28bd669da5eaf3f0a56380" }
@ -60,6 +60,7 @@ ssr = [
"tower",
"tower-http",
"tower-sessions-redis-store",
"axum-login",
]
# Defines a size-optimized profile for the WASM bundle in release mode