[package]
name = "polymodel-renderer-worker"
version.workspace = true
edition.workspace = true
license.workspace = true
description = "Web Worker renderer: three-d scene + mesh parsing in a separate WASM bundle."

[[bin]]
name = "renderer_worker"
path = "src/main.rs"

[dependencies]
polymodel-mesh = { path = "../polymodel-mesh" }
polymodel-renderer-protocol = { path = "../polymodel-renderer-protocol" }
three-d = { version = "0.19.0", default-features = false }
three-d-asset = { version = "0.10", default-features = false, features = ["gltf", "obj", "data-url", "png"] }
wasm-bindgen = { workspace = true }
wasm-bindgen-futures = "0.4"
web-sys = { version = "0.3", features = [
    "DedicatedWorkerGlobalScope",
    "WorkerGlobalScope",
    "OffscreenCanvas",
    "WebGl2RenderingContext",
    "EventTarget",
    "Event",
    "WebGlContextEvent",
    "MessageEvent",
    "console",
    "Performance",
    "Request",
    "RequestInit",
    "RequestMode",
    "Response",
    "Headers",
    "Blob",
    "BlobPropertyBag",
] }
js-sys = "0.3"
console_error_panic_hook = "0.1"
talc = "5.0"
spinning_top = "0.3"
tracing = { version = "0.1", default-features = false, features = ["std"] }
tracing-wasm = "0.2"
getrandom = { version = "0.3", features = ["wasm_js"] }

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