[package]
name = "dioxus-html"
version = { workspace = true }
authors = ["Jonathan Kelley"]
edition = "2021"
description = "HTML Element pack for Dioxus - a concurrent renderer-agnostic Virtual DOM for interactive user experiences"
license = "MIT OR Apache-2.0"
repository = "https://github.com/DioxusLabs/dioxus/"
homepage = "https://dioxuslabs.com"
keywords = ["dom", "ui", "gui", "react"]

[dependencies]
dioxus-core = { workspace = true }
dioxus-core-macro = { workspace = true }
dioxus-core-types = { workspace = true }
dioxus-rsx = { workspace = true, optional = true }
dioxus-html-internal-macro = { workspace = true }
dioxus-hooks = { workspace = true }
generational-box = { workspace = true }
serde = { workspace = true, features = ["derive"], optional = true }
serde_repr = { workspace = true, optional = true }
js-sys = { workspace = true, optional = true }
keyboard-types = { workspace = true, default-features = false }
async-trait = { workspace = true }
tokio = { workspace = true, features = ["fs", "io-util"], optional = true }
futures-channel = { workspace = true }
serde_json = { workspace = true, optional = true }
tracing = { workspace = true }
rustversion = { workspace = true }
euclid = "0.22.11"
enumset = "1.1.5"

[build-dependencies]
lazy-js-bundle = { workspace = true }

[dev-dependencies]
serde_json = "1"
dioxus = { workspace = true }
dioxus-web = { workspace = true }
tokio = { workspace = true, features = ["time"] }
manganis = { workspace = true }

[features]
default = ["serialize"]
serialize = [
    "dep:serde",
    "dep:serde_json",
    "dep:serde_repr",
    "euclid/serde",
    "keyboard-types/serde",
    "dioxus-core/serialize"
]
# TODO: Remove the mounted feature flag in the next major release. It no longer activates any extra code
mounted = []
# TODO: Remove the file engine feature flag in the next major release. It no longer activates any extra code
file_engine = []
hot-reload-context = ["dep:dioxus-rsx"]
html-to-rsx = []

[package.metadata.docs.rs]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
feature = ["html-to-rsx", "hot-reload-context", "html-to-rsx"]
