Gunnar

nordisk/monetize

crates/monetize-ui-web/Cargo.toml

[package]
name = "monetize-ui-web"
description = "The monetize operator console: a Leptos/WASM single-page app served by monetize-ui-server"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
repository.workspace = true
license.workspace = true
authors.workspace = true
publish.workspace = true

[dependencies]
# The ONE byte formatter (`monetize_product::bytes`). This crate is `serde` and
# nothing else, so it costs the bundle a formatter it was already carrying — and
# the copy it replaces here had the same `0.0 GiB` bug as the two in core and in
# the gunnar plugin. One implementation: one writer, not three that agree.
monetize-product = { path = "../monetize-product" }
leptos.workspace = true
leptos_router.workspace = true
serde.workspace = true
serde_json.workspace = true

console_error_panic_hook = "0.1"
gloo-net = { version = "0.7", features = ["http"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
send_wrapper = "0.6"

# `EventSource`/`MessageEvent` carry the live feed. The passkey ceremony goes
# through `js_sys::Reflect` (WebAuthn Level 3 `parseCreationOptionsFromJSON` /
# `toJSON`), so no credential-management features are needed here.
web-sys = { version = "0.3", features = [
  "Window",
  "Location",
  "Navigator",
  "Document",
  "Element",
  "HtmlElement",
  "HtmlInputElement",
  "HtmlDocument",
  "Event",
  "EventTarget",
  "EventSource",
  "MessageEvent",
  "Storage",
] }