# 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 = "dioxus-interpreter-js"
version = "0.8.0-alpha.0"
authors = ["Jonathan Kelley"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "JS Interpreter for Dioxus - a concurrent renderer-agnostic Virtual DOM for interactive user experiences"
homepage = "https://dioxuslabs.com"
documentation = "https://docs.rs/dioxus"
readme = "README.md"
keywords = [
    "dom",
    "ui",
    "gui",
    "react",
    "wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/DioxusLabs/dioxus/"
resolver = "2"

[features]
binary-protocol = [
    "sledgehammer",
    "dep:dioxus-core",
    "dep:dioxus-core-types",
    "dep:dioxus-html",
]
default = []
minimal_bindings = []
serialize = ["dep:serde"]
sledgehammer = [
    "dep:sledgehammer_bindgen",
    "dep:sledgehammer_utils",
    "dep:rustc-hash",
]
webonly = [
    "sledgehammer",
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
    "dep:js-sys",
    "dep:web-sys",
    "sledgehammer_bindgen/web",
]

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

[[test]]
name = "e2e"
path = "tests/e2e.rs"

[[test]]
name = "serialize"
path = "tests/serialize.rs"

[dependencies.dioxus-core]
version = "0.8.0-alpha.0"
optional = true

[dependencies.dioxus-core-types]
version = "0.8.0-alpha.0"
optional = true

[dependencies.dioxus-html]
version = "0.8.0-alpha.0"
optional = true
default-features = false

[dependencies.js-sys]
version = "0.3.98"
optional = true

[dependencies.rustc-hash]
version = "2.1.1"
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dependencies.sledgehammer_bindgen]
version = "0.6.0"
optional = true
default-features = false

[dependencies.sledgehammer_utils]
version = "0.3.1"
optional = true

[dependencies.wasm-bindgen]
version = "0.2.121"
optional = true

[dependencies.wasm-bindgen-futures]
version = "0.4.71"
optional = true

[dependencies.web-sys]
version = "0.3.98"
features = [
    "Element",
    "Node",
]
optional = true
default-features = false

[build-dependencies.lazy-js-bundle]
version = "0.8.0-alpha.0"
