Skip to content

Commit 6f0bbd0

Browse files
committed
shader-nodes feature: put rust-gpu to wgsl compile behind feature gate
1 parent feec797 commit 6f0bbd0

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

frontend/wasm/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ license = "Apache-2.0"
1414
default = ["gpu"]
1515
gpu = ["editor/gpu"]
1616
native = []
17+
shader-nodes = ["graphene-std/shader-nodes"]
1718

1819
[lib]
1920
crate-type = ["cdylib", "rlib"]

node-graph/graster-nodes/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@ workspace = true
1414

1515
[features]
1616
default = ["std"]
17+
shader-nodes = [
18+
"std",
19+
"dep:graphene-raster-nodes-shaders",
20+
]
1721
std = [
1822
"dep:graphene-core",
19-
"dep:graphene-raster-nodes-shaders",
2023
"dep:dyn-any",
2124
"dep:image",
2225
"dep:ndarray",
@@ -26,8 +29,6 @@ std = [
2629
"dep:serde",
2730
"dep:specta",
2831
"dep:kurbo",
29-
"glam/debug-glam-assert",
30-
"glam/serde",
3132
]
3233

3334
[dependencies]

node-graph/gstd/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ image-compare = []
2121
vello = ["dep:vello", "gpu"]
2222
resvg = []
2323
wayland = ["graph-craft/wayland"]
24+
shader-nodes = ["graphene-raster-nodes/shader-nodes"]
2425

2526
[dependencies]
2627
# Local dependencies

0 commit comments

Comments
 (0)