Desktop: Stop compiling the editor into the wasm wrapper (#4348)

* Make wasm wrapper not depend on editor on native

* Introduce pkg-native

* Fix tests

* Fix fmt

* Correct span and make cargo fmt work inside editor_commands block

* Review

* Fix lint
This commit is contained in:
Timon
2026-07-18 12:04:07 +02:00
committed by GitHub
parent 0eab6aa93c
commit f88896a887
26 changed files with 1608 additions and 943 deletions

8
Cargo.lock generated
View File

@@ -2323,9 +2323,9 @@ dependencies = [
"graph-craft",
"graphene-std",
"graphite-editor",
"graphite-wasm-wrapper",
"image",
"keyboard-types",
"ron",
"serde",
"serde_json",
"thiserror 2.0.18",
@@ -2385,6 +2385,7 @@ dependencies = [
name = "graphite-proc-macros"
version = "0.0.0"
dependencies = [
"convert_case",
"graphite-editor",
"proc-macro2",
"quote",
@@ -2396,17 +2397,18 @@ dependencies = [
name = "graphite-wasm-wrapper"
version = "0.0.0"
dependencies = [
"bytemuck",
"graph-craft",
"graphene-std",
"graphite-editor",
"graphite-proc-macros",
"js-sys",
"log",
"node-macro",
"ron",
"serde",
"serde-wasm-bindgen",
"serde_bytes",
"serde_json",
"tsify",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",