[package]
name = "rustelo_content"
version = "0.1.0"
edition = "2021"
description = "Rustelo Framework - Content management port over foundation"
license = "MIT"
repository = "https://github.com/your-org/rustelo"

[features]
default = []
# Propagate Leptos compilation targets to rustelo_pages_leptos page re-exports
ssr     = []
leptos-hydration = ["dep:rustelo_pages_leptos", "rustelo_pages_leptos?/ssr", "dep:leptos_axum"]
hydrate = ["dep:rustelo_pages_leptos"]
markdown = ["dep:pulldown-cmark", "dep:syntect"]
search   = []

[dependencies]
# Foundation — the real engine
rustelo_core_lib   = { workspace = true }
rustelo_core_types = { workspace = true }

# Foundation page components — only pulled in when ssr/hydrate active
rustelo_pages_leptos = { workspace = true, optional = true }

# Content processing
pulldown-cmark = { workspace = true, optional = true }
syntect        = { workspace = true, optional = true }
gray_matter    = { workspace = true }

# File system
walkdir = { workspace = true }
ignore  = { workspace = true }

# Serialization
serde      = { workspace = true }
serde_json = { workspace = true }
toml       = { workspace = true }

# Utilities
thiserror = { workspace = true }
tracing   = { workspace = true }
regex     = { workspace = true }
unicode-normalization = { workspace = true }

# SSR-only
leptos_axum = { workspace = true, optional = true }

[build-dependencies]
walkdir = { workspace = true }
