diff --git a/Cargo.lock b/Cargo.lock index 7fb86c6..fb4df87 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2983,6 +2983,7 @@ dependencies = [ "js-sys", "log", "materialcraft-engine", + "materialcraft-formats", "materialcraft-ui-egui", "wasm-bindgen", "wasm-bindgen-futures", diff --git a/apps/materialcraft-web/Cargo.toml b/apps/materialcraft-web/Cargo.toml index e52df34..084eb87 100644 --- a/apps/materialcraft-web/Cargo.toml +++ b/apps/materialcraft-web/Cargo.toml @@ -21,7 +21,9 @@ log = { workspace = true } [target.'cfg(target_arch = "wasm32")'.dependencies] # `wgpu` pulls egui-wgpu's defaults: WebGPU plus the WebGL2 fallback. eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit", "persistence"] } +# The SBS library's `resources/`, which the browser build downloads at startup. +materialcraft-formats = { workspace = true } wasm-bindgen = "0.2" wasm-bindgen-futures = "0.4" js-sys = "0.3" -web-sys = { version = "0.3", features = ["Window", "Document", "Element", "HtmlCanvasElement", "Location", "KeyboardEvent", "EventTarget", "AddEventListenerOptions"] } +web-sys = { version = "0.3", features = ["Window", "Document", "Element", "HtmlCanvasElement", "Location", "KeyboardEvent", "EventTarget", "AddEventListenerOptions", "Response"] } diff --git a/apps/materialcraft-web/index.html b/apps/materialcraft-web/index.html index 9cce260..ddc2176 100644 --- a/apps/materialcraft-web/index.html +++ b/apps/materialcraft-web/index.html @@ -6,6 +6,8 @@ MaterialCraft + +