[package]
name = "dioxus-native"
version = { workspace = true }
authors = ["Jonathan Kelley", "Nico Burns"]
edition = "2021"
description = "Native renderer for Dioxus based on blitz"
license = "MIT OR Apache-2.0"
repository = "https://github.com/DioxusLabs/dioxus/"
homepage = "https://dioxuslabs.com/learn/0.6/getting_started"
keywords = ["dom", "ui", "gui", "react"]


[features]
default = ["accessibility", "hot-reload", "menu", "tracing", "net", "svg", "system-fonts"]
svg = ["blitz-dom/svg", "blitz-paint/svg"]
net = ["dep:tokio", "dep:blitz-net"]
accessibility = ["blitz-shell/accessibility", "blitz-dom/accessibility"]
menu = ["blitz-shell/menu"]
tracing = ["dep:tracing", "blitz-shell/tracing", "blitz-dom/tracing"]
hot-reload = ["dep:dioxus-cli-config", "dep:dioxus-devtools"]
system-fonts = ["blitz-dom/system_fonts"]
autofocus = []

[dependencies]
# Blitz dependencies
anyrender = { version = "0.1", default-features = false }
anyrender_vello = { version = "0.1", default-features = false }
blitz-dom = { version = "0.1.0-alpha.2", default-features = false }
blitz-net = { version = "0.1.0-alpha.2", optional = true }
blitz-paint = { version = "0.1.0-alpha.2", optional = true }
blitz-traits = { version = "0.1.0-alpha.2" }
blitz-shell = { version = "0.1.0-alpha.2", default-features = false }

# DioxusLabs dependencies
dioxus-core = { workspace = true }
dioxus-html = { workspace = true }
dioxus-asset-resolver = { workspace = true }
dioxus-cli-config = { workspace = true, optional = true }
dioxus-devtools = { workspace = true, optional = true }
dioxus-history = { workspace = true }
dioxus-document = { workspace = true }

# Windowing & Input
winit = { workspace = true }
keyboard-types = { workspace = true }

# IO & Networking
tokio = { workspace = true, features = ["rt-multi-thread"], optional = true }

# Other dependencies
tracing = { workspace = true, optional = true }
rustc-hash = { workspace = true }
futures-util = { workspace = true }

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