# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "a2ui-dioxus"
version = "0.3.0"
authors = ["Liangdi <wu@liangdi.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Dioxus reactive WebView GUI backend for A2UI (Agent to UI)"
readme = "README.md"
license = "MIT"
repository = "https://github.com/Liangdi/a2ui"

[features]
backend = ["dep:dioxus"]
default = []

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

[[example]]
name = "17_scifi_hud"
path = "examples/17_scifi_hud.rs"
required-features = ["backend"]

[dependencies.a2ui-base]
version = "0.3.0"

[dependencies.dioxus]
version = "0.7"
features = [
    "desktop",
    "launch",
    "macro",
    "html",
    "signals",
    "hooks",
]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dev-dependencies.a2ui-tui]
version = "0.3.0"

[dev-dependencies.dioxus]
version = "0.7"
features = [
    "desktop",
    "launch",
    "macro",
    "html",
    "signals",
    "hooks",
]
default-features = false

[dev-dependencies.tokio]
version = "1"
features = ["time"]
