Files
Graphite/frontend/wrapper/Cargo.toml
Dennis Kobert f02107edb3 Move web overlay rendering from Canvas 2D to Vello (#4946)
* Render overlays with Vello on web too, compositing them over the viewport artwork in the graph runtime

* Draw desktop overlays in the graph runtime too, compositing them over the artwork with Vello

* Remove the editor's gpu feature, since every build that includes the editor enables it

* Only let overlay wakes start a desktop runtime run when no frame is in flight
2026-11-18 11:17:38 +00:00

53 lines
1.6 KiB
TOML

[package]
name = "graphite-wasm-wrapper"
version.workspace = true
license.workspace = true
authors.workspace = true
edition.workspace = true
repository.workspace = true
homepage.workspace = true
rust-version.workspace = true
publish.workspace = true
readme = "./README.md"
[features]
default = ["web"]
web = ["editor", "editor?/wasm"]
editor = ["dep:editor", "dep:graphene-std", "dep:graph-craft", "dep:spin", "dep:wgpu"]
native = []
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
# Local dependencies
editor = { path = "../../editor", package = "graphite-editor", optional = true }
graphite-proc-macros = { workspace = true }
graphene-std = { workspace = true, optional = true }
# Workspace dependencies
base64 = { workspace = true }
graph-craft = { workspace = true, optional = true }
log = { workspace = true }
serde = { workspace = true }
wasm-bindgen = { workspace = true }
serde-wasm-bindgen = { workspace = true }
js-sys = { workspace = true }
wasm-bindgen-futures = { workspace = true }
wgpu = { workspace = true, optional = true }
web-sys = { workspace = true, features = ["Blob", "BlobPropertyBag", "ClipboardItem", "DataTransfer", "DataTransferItem", "DataTransferItemList", "File", "IdleDeadline", "Location", "PermissionState", "PermissionStatus", "Permissions"] }
serde_json = { workspace = true }
spin = { workspace = true, optional = true }
tsify = { workspace = true }
[dev-dependencies]
serde_bytes = { workspace = true }
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(wasm_bindgen_unstable_test_coverage)',
] }
[package.metadata.cargo-shear]
ignored = ["wgpu"]