
[package]
name = "rustelo_pages"
version = "0.1.0"
edition = "2021"

[features]
default = []
ssr = []

[dependencies]
leptos = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
chrono = { workspace = true, features = ["serde"] }
tracing = { workspace = true }
paste = { workspace = true }
typed-builder = { workspace = true }
html-escape = { workspace = true }
thiserror = { workspace = true }
cfg-if = { workspace = true }

# Workspace dependencies
rustelo_core_lib = { workspace = true }
rustelo_core_types = { workspace = true }
rustelo_components = { workspace = true }
rustelo_utils = { workspace = true }
reactive_graph = { workspace = true }

# For client-side features
web-sys = { workspace = true, optional = false }
js-sys = { workspace = true, optional = false }
wasm-bindgen = { workspace = true, optional = false }
wasm-bindgen-futures = { workspace = true, optional = false }
console_error_panic_hook = { workspace = true, optional = false }

# Build dependencies
[build-dependencies]
# rustelo_tools = { workspace = true }  # Tools crate needs extensive fixes
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
toml = { workspace = true }
regex = { workspace = true }
walkdir = { workspace = true }

# Conditional dependencies for SSR vs client
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# SSR-only dependencies
tokio = { workspace = true }
reqwest = { workspace = true }

[target.'cfg(target_arch = "wasm32")'.dependencies]
# Client-only dependencies
reqwasm = { workspace = true }
wasm-bindgen-futures = { workspace = true }
gloo-net = { workspace = true }
serde-wasm-bindgen = { workspace = true }
