# jpl-website - Shared Crate
# Common code between server and client

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

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

# Leptos (isomorphic features)
leptos = { workspace = true }
leptos_router = { workspace = true }
leptos_meta = { workspace = true }

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

# Utilities  
uuid = { workspace = true }
chrono = { workspace = true }

[features]
default = []

# Feature flags for different compilation targets
ssr = [
    "leptos/ssr",
    "leptos_router/ssr", 
    "leptos_meta/ssr"
]
hydrate = [
    "leptos/hydrate"
]
csr = [
    "leptos/csr"
]

# CMS Shared Features
content-types = []
cms-components = []
admin-components = []