# jpl-website - Client Crate  
# WASM client-side code with hydration

[package]
name = "jpl_website-client"
version = "{{project_version}}"
edition = "2021"
authors = [{{authors}}]
description = "jpl-website client from Rustelo framework"

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

[dependencies]
# Workspace crates
jpl_website-shared = { workspace = true }

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

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

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

# Data & Serialization  
serde = { workspace = true }
serde_json = { workspace = true }

# Utilities
uuid = { workspace = true, features = ["js"] }
chrono = { workspace = true }

[features]
default = ["hydrate"]
csr = ["leptos/csr", "jpl_website-shared/csr"]
hydrate = ["leptos/hydrate", "jpl_website-shared/hydrate"]

# CMS Client Features
content-editor = ["rustelo-content/editor"]
media-uploader = ["rustelo-content/uploader"] 
admin-ui = ["rustelo-content/admin-ui"]