[package]
name = "rustelo_auth"
version = "0.1.0"
edition = "2021"
description = "Rustelo Framework - Authentication and authorization port over foundation"
license = "MIT"
repository = "https://github.com/your-org/rustelo"

[features]
default = []
ssr     = ["dep:rustelo_server"]
leptos-hydration = ["dep:rustelo_pages_leptos", "rustelo_pages_leptos?/ssr", "dep:leptos_axum"]
hydrate = ["dep:rustelo_pages_leptos"]

[dependencies]
# Foundation — auth types live here
rustelo_core_lib   = { workspace = true }
rustelo_core_types = { workspace = true }

# Foundation page components — only pulled in when ssr/hydrate active
rustelo_pages_leptos = { workspace = true, optional = true }

# Foundation server — JWT and password services (SSR only)
rustelo_server = { workspace = true, optional = true, default-features = false, features = ["auth"] }

# Serialization (needed by public API surface: User, Claims, SessionInfo, etc.)
serde      = { workspace = true }
serde_json = { workspace = true }
uuid       = { workspace = true }
chrono     = { workspace = true }

# Error and logging
thiserror = { workspace = true }
tracing   = { workspace = true }

# SSR-only
leptos_axum = { workspace = true, optional = true }

[build-dependencies]
walkdir = { workspace = true }
