mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
50 lines
1.3 KiB
TOML
50 lines
1.3 KiB
TOML
[package]
|
|
name = "graphite-wasm-wrapper"
|
|
version.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
publish.workspace = true
|
|
|
|
[features]
|
|
default = ["gpu", "shader-nodes", "web"]
|
|
web = ["editor", "editor?/wasm"]
|
|
editor = ["dep:editor", "dep:graphene-std", "dep:graph-craft", "dep:wgpu"]
|
|
gpu = ["editor?/gpu"]
|
|
shader-nodes = ["graphene-std?/shader-nodes", "gpu"]
|
|
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
|
|
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 }
|
|
serde_json = { workspace = 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"]
|