[package]
name        = "rustelo_content_graph_ssr"
version     = "0.1.0"
edition     = "2021"
authors     = ["Rustelo Contributors"]
license     = "MIT"
description = "Runtime HTML rendering for the htmx-ssr post sidebar — reads content_graph.json from the PV, no Leptos required."

[lib]
name = "content_graph_ssr"
path = "src/lib.rs"

# `gen` pulls the graph-generation build tooling for the host tool only.
# The server build (`--features htmx-ssr`) never enables it, so the runtime
# binary stays free of content-graph/nickel build deps.
[features]
gen = ["dep:content-graph", "dep:rustelo_utils"]

[dependencies]
serde      = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
tracing    = { workspace = true }
content-graph  = { path = "../../../../features/content-graph", optional = true }
rustelo_utils  = { workspace = true, optional = true }

[[bin]]
name             = "gen-content-graph"
path             = "src/bin/gen-content-graph.rs"
required-features = ["gen"]
