[package]
name = "jpl-website-server"
version = "0.1.0"
edition = "2021"
description = "jpl-website server from Rustelo framework"

[[bin]]
name = "jpl-website-server"
path = "src/main.rs"

[dependencies]
# Workspace crates
jpl-website-shared = { workspace = true }
jpl-website-client = { workspace = true }
jpl-website-ssr = { workspace = true }

# Rustelo Framework
rustelo-core = { workspace = true }
rustelo-web = { workspace = true }
rustelo-content = { workspace = true }
rustelo-auth = { workspace = true }

# Leptos SSR
leptos = { workspace = true, features = ["ssr"] }
leptos_axum = { workspace = true }
leptos_router = { workspace = true, features = ["ssr"] }
leptos_meta = { workspace = true, features = ["ssr"] }
leptos_config = { workspace = true }

# Web Server
axum = { workspace = true }
tower = { workspace = true }
tower-http = { workspace = true }
tokio = { workspace = true }

# Data
serde = { workspace = true }
serde_json = { workspace = true }
uuid = { workspace = true }
chrono = { workspace = true }
anyhow = { workspace = true }
thiserror = { workspace = true }

[features]
default = ["ssr"]
ssr = [
    "leptos/ssr",
    "jpl-website-shared/ssr",
    "jpl-website-ssr/ssr"
]