wasm_liveview 0.4.0

Two-way bridge between wasm-bindgen Rust and a Phoenix LiveView: JS commands out, server-pushed events in.
Documentation
# 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 = "wasm_liveview"
version = "0.4.0"
authors = [
    "Aaron Tavistock",
    "<aaron-crateio@geekshow.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Two-way bridge between wasm-bindgen Rust and a Phoenix LiveView: JS commands out, server-pushed events in."
readme = "README.md"
license = "MIT"
repository = "https://github.com/atavistock/wasm_liveview"

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

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

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

[dependencies.serde_json]
version = "1"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "Window",
    "Document",
    "Element",
    "EventTarget",
    "CustomEvent",
    "MutationObserver",
    "MutationObserverInit",
    "MutationRecord",
    "console",
]