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

[lib]
crate-type = ["cdylib"]

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

# Rustelo Framework (client features)
rustelo-web = { workspace = true }
rustelo-content = { workspace = true }

# Leptos Client
leptos = { workspace = true, features = ["hydrate"] }
leptos_router = { workspace = true }
leptos_meta = { workspace = true }

# WASM
web-sys = { workspace = true }
wasm-bindgen = { workspace = true }
console_error_panic_hook = { workspace = true }

# Data
serde = { workspace = true }
serde_json = { workspace = true }
uuid = { workspace = true, features = ["js"] }
chrono = { workspace = true }

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