# 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 = "2021"
name = "islands-runtime"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The shared WASM runtime for islands.rs: reactive Signal/Scope/effect primitives and idempotent island mounting, emitted as islands_core.{js,wasm}."
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/kyureion/islands"

[features]
default = ["nav"]
nav = [
    "dep:islands-morph",
    "dep:serde",
    "dep:serde_json",
    "dep:wasm-bindgen-futures",
    "web-sys/MouseEvent",
    "web-sys/HtmlAnchorElement",
    "web-sys/HtmlTemplateElement",
    "web-sys/History",
    "web-sys/ScrollRestoration",
    "web-sys/PopStateEvent",
    "web-sys/Location",
    "web-sys/Url",
    "web-sys/AbortController",
    "web-sys/AbortSignal",
    "web-sys/Request",
    "web-sys/RequestInit",
    "web-sys/Response",
    "web-sys/Headers",
    "web-sys/Node",
    "web-sys/DocumentFragment",
    "web-sys/DomParser",
    "web-sys/SupportedType",
    "web-sys/ScrollToOptions",
    "web-sys/Navigator",
    "web-sys/IntersectionObserver",
    "web-sys/IntersectionObserverEntry",
]

[lib]
name = "islands_runtime"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

[dependencies.console_error_panic_hook]
version = "0.1"

[dependencies.islands-morph]
version = "0.1.1"
optional = true
default-features = false

[dependencies.js-sys]
version = "0.3"

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

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.wasm-bindgen]
version = "0.2"

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

[dependencies.web-sys]
version = "0.3"
features = [
    "Document",
    "Element",
    "EventTarget",
    "HtmlElement",
    "NodeList",
    "Window",
    "console",
]

[dev-dependencies.wasm-bindgen-test]
version = "0.3"
