[package]
name = "website-client"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true

[dependencies]
leptos.workspace = true
leptos_meta.workspace = true
leptos_router.workspace = true
web-sys.workspace = true
wasm-bindgen.workspace = true
console_error_panic_hook.workspace = true
gloo-net.workspace = true
gloo-timers.workspace = true
futures.workspace = true
wasm-bindgen-futures.workspace = true
getrandom.workspace = true
serde.workspace = true
serde_json.workspace = true

# Rustelo framework ports (primary entry points)
rustelo_web    = { workspace = true }
rustelo_client.workspace = true
# Foundation kept for build.rs generated code compatibility and csr feature
rustelo_core_lib.workspace = true
rustelo_pages_leptos.workspace = true
rustelo_components_leptos.workspace = true
website-pages = { path = "../pages" }

[build-dependencies]
build-config = { path = "../build-config" }
toml.workspace = true
serde.workspace = true
serde_json.workspace = true
tera.workspace = true
walkdir.workspace = true
sha2.workspace = true
rustelo_utils.workspace = true
rustelo_tools.workspace = true

[features]
default = ["csr"]
csr = ["leptos/csr", "rustelo_components_leptos/csr"]
hydrate = ["leptos/hydrate", "rustelo_components_leptos/hydrate"]
ssr = ["leptos/ssr", "rustelo_components_leptos/ssr"]
content-watcher = []
content-static = []

[lib]
name = "website_client"
path = "src/lib.rs"
crate-type = ["cdylib"]
