
[package]
name = "rustelo_components"
version = "0.1.0"
edition = "2021"
authors = ["Rustelo Contributors"]
license = "MIT"
description = "Reusable UI components for Rustelo web application template"
documentation = "https://docs.rs/components"
repository = "https://github.com/yourusername/rustelo"
homepage = "https://jesusperez.pro"
readme = "../../README.md"
keywords = ["rust", "web", "leptos", "components", "ui"]
categories = ["web-programming", "template-engine"]

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

[dependencies]
leptos = { workspace = true }
reactive_graph = { workspace = true }
leptos_meta = { workspace = true }
leptos_config = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
toml = { workspace = true }
fluent = { workspace = true }
fluent-bundle = { workspace = true }
unic-langid = { workspace = true }
tracing = { workspace = true }
regex = { workspace = true }
chrono = { workspace = true }
uuid = { workspace = true }
paste = { workspace = true }
once_cell = { workspace = true }
web-sys = { workspace = true }

rustelo_core_lib = { workspace = true }
rustelo_core_types = { workspace = true }
# rustelo_tools = { workspace = true }  # Tools crate needs extensive fixes

# WASM-specific dependencies (client-side only)
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = { workspace = true }
wasm-bindgen-futures = { workspace = true }
gloo-net = { workspace = true }
js-sys = { workspace = true }
web-sys = { workspace = true }
gloo-timers = { workspace = true }
console_error_panic_hook = { workspace = true }

[features]
default = []
hydrate = ["leptos/hydrate"]
ssr = []
cache = []
# Console logging control
console-log = [] # Enable console logging (for development)
console-log-production = [] # Enable console logging in production builds

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