[package]
name = "rustelo_components_htmx"
version = "0.1.0"
edition = "2021"
authors = ["Rustelo Contributors"]
license = "MIT"
description = "Rustelo UI components for the HTMX-SSR rendering profile (ADR-006)"
documentation = "https://docs.rs/rustelo_components_htmx"
repository = "https://github.com/yourusername/rustelo"
homepage = "https://jesusperez.pro"
keywords = ["rust", "web", "htmx", "components", "ssr"]
categories = ["web-programming", "template-engine"]

[lib]
crate-type = ["lib"]

[dependencies]
html-escape = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
tracing = { workspace = true }

minijinja = { workspace = true }
rustelo_core_lib = { workspace = true }
rustelo_core_types = { workspace = true }
rustelo_pages_htmx = { workspace = true }
rustelo_seo = { workspace = true }

[features]
default = ["htmx-runtime"]
# Enables the htmx-ssr runtime: every component emits hx-* attributes targeting
# the /api/htmx/* endpoint catalogue. Disabling this feature makes the crate
# inert — useful for downstream crates that want a pure-SSR build without HTMX.
htmx-runtime = []

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
