[package]
name = "mizan-rust-ssr"
version = "0.1.0"
edition = "2021"
description = "Mizan SSR engine — embeds a deno_core V8 runtime (with deno_web) to render the build-time JS bundle to HTML in-process. No node, no bun, at serve time."
license = "Elastic-2.0"

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

# deno_core + deno_web are added via `cargo add` so the resolver pins a
# version-matched pair (deno_web constrains deno_core); the web-platform
# globals react-dom/server.browser needs (TextEncoder, timers, MessagePort,
# streams) come from deno_web as real implementations, not hand-rolled shims.
[dependencies]
anyhow = "1.0.102"
deno_core = "0.403.0"
deno_web = "0.281.0"
deno_webidl = "0.250.0"

[dev-dependencies]
tokio = { version = "1.52.3", features = ["rt-multi-thread", "macros"] }
