2026-10-02 00:19:35 -04:00
[ package ]
name = "effectcraft-web"
2026-10-02 23:42:00 -04:00
description = "EffectCraft in the browser (wasm32): eframe web runner, persistent browser storage (OPFS / IndexedDB), Web Audio, Web Worker renders, PWA, window.effectcraft API"
2026-10-02 00:19:35 -04:00
version . workspace = true
edition . workspace = true
license . workspace = true
publish = false
[ lints ]
workspace = true
[ lib ]
crate-type = [ "cdylib" , "rlib" ]
2026-10-02 23:42:00 -04:00
# The browser glue is wasm32-only; on other targets the crate holds just the portable storage
# model (`store`), unit-tested natively. Build the app with `cargo xtask web` (see docs/web.md).
[ dependencies ]
2026-10-02 00:19:35 -04:00
effectcraft-engine = { workspace = true }
2026-10-02 23:42:00 -04:00
serde = { workspace = true }
serde_json = { workspace = true }
[ target . 'cfg(target_arch = "wasm32")' . dependencies ]
2026-10-02 00:19:35 -04:00
effectcraft-host = { workspace = true }
2026-10-03 18:35:03 -04:00
effectcraft-gpu = { workspace = true }
2026-10-02 00:19:35 -04:00
effectcraft-media = { workspace = true }
effectcraft-export = { workspace = true }
effectcraft-expr = { workspace = true }
effectcraft-ui-egui = { workspace = true }
egui = { workspace = true }
eframe = { workspace = true , features = [ "default_fonts" , "wgpu" ] }
log = { workspace = true }
2026-10-02 23:42:00 -04:00
web-time = { workspace = true }
2026-10-02 00:19:35 -04:00
# The wasm-bindgen CLI used by `cargo xtask web` must be exactly this version.
wasm-bindgen = "=0.2.129"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = { version = "0.3" , features = [
"Blob" ,
"BlobPropertyBag" ,
"CssStyleDeclaration" ,
"Document" ,
"Element" ,
2026-10-02 23:42:00 -04:00
"DedicatedWorkerGlobalScope" ,
2026-10-02 00:19:35 -04:00
"Event" ,
"EventTarget" ,
"File" ,
"FileList" ,
"HtmlAnchorElement" ,
"HtmlCanvasElement" ,
"HtmlElement" ,
"HtmlInputElement" ,
"Location" ,
"Url" ,
"UrlSearchParams" ,
"Window" ,
] }