# 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"
rust-version = "1.89.0"
name = "blitz"
version = "0.3.0-alpha.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-level APIs for rendering HTML with Blitz"
homepage = "https://github.com/dioxuslabs/blitz"
documentation = "https://docs.rs/blitz"
readme = false
categories = ["gui"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dioxuslabs/blitz"
resolver = "2"

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

[features]
accessibility = ["blitz-shell/accessibility"]
default = [
    "net",
    "accessibility",
    "tracing",
]
net = [
    "dep:tokio",
    "dep:url",
    "dep:blitz-net",
]
tracing = [
    "dep:tracing",
    "blitz-shell/tracing",
    "blitz-html/tracing",
    "blitz-net/tracing",
]

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

[dependencies.anyrender_vello]
version = "0.10.1"

[dependencies.blitz-dom]
version = "=0.3.0-alpha.4"
default-features = false

[dependencies.blitz-html]
version = "=0.3.0-alpha.4"
default-features = false

[dependencies.blitz-net]
version = "=0.3.0-alpha.4"
optional = true
default-features = false

[dependencies.blitz-paint]
version = "=0.3.0-alpha.4"
default-features = false

[dependencies.blitz-shell]
version = "=0.3.0-alpha.4"
default-features = false

[dependencies.blitz-traits]
version = "=0.3.0-alpha.4"
default-features = false

[dependencies.tokio]
version = "1.42"
features = ["rt"]
optional = true

[dependencies.tracing]
version = "0.1.40"
optional = true

[dependencies.url]
version = "2.5.0"
features = ["serde"]
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.42"
features = ["rt-multi-thread"]
optional = true
