diff --git a/Cargo.lock b/Cargo.lock index 8ff6fc3ef..20ae00caf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2229,9 +2229,11 @@ dependencies = [ "js-sys", "lightcraft-codecs", "lightcraft-engine", + "lightcraft-preview", "lightcraft-raster", "lightcraft-ui-egui", "log", + "serde", "serde_json", "wasm-bindgen", "wasm-bindgen-futures", diff --git a/apps/lightcraft-web/Cargo.toml b/apps/lightcraft-web/Cargo.toml index b9c7bdf23..1f9f14c13 100644 --- a/apps/lightcraft-web/Cargo.toml +++ b/apps/lightcraft-web/Cargo.toml @@ -17,6 +17,8 @@ lightcraft-engine = { workspace = true } lightcraft-ui-egui = { workspace = true } lightcraft-codecs = { workspace = true } lightcraft-raster = { workspace = true } +lightcraft-preview = { workspace = true } +serde = { workspace = true } serde_json = { workspace = true } log = { workspace = true } @@ -29,16 +31,42 @@ js-sys = { workspace = true } web-sys = { workspace = true, features = [ "Blob", "BlobPropertyBag", + "DedicatedWorkerGlobalScope", "Document", + "DomStringList", "Element", + "EventTarget", "File", "FileList", + "FileSystemCreateWritableOptions", + "FileSystemDirectoryHandle", + "FileSystemFileHandle", + "FileSystemGetDirectoryOptions", + "FileSystemGetFileOptions", + "FileSystemRemoveOptions", + "FileSystemWritableFileStream", "HtmlAnchorElement", "HtmlCanvasElement", "HtmlElement", "HtmlInputElement", + "IdbDatabase", + "IdbFactory", + "IdbKeyRange", + "IdbObjectStore", + "IdbOpenDbRequest", + "IdbRequest", + "IdbTransaction", + "IdbTransactionMode", + "IdbVersionChangeEvent", "Location", + "MessageEvent", + "Navigator", "Performance", + "StorageManager", "Url", "Window", + "Worker", + "WorkerOptions", + "WorkerType", + "WritableStream", ] } diff --git a/apps/lightcraft-web/index.html b/apps/lightcraft-web/index.html index ac1ed167a..bc0ad2037 100644 --- a/apps/lightcraft-web/index.html +++ b/apps/lightcraft-web/index.html @@ -22,8 +22,16 @@
Loading LightCraft…