Skip to content

Commit 28268aa

Browse files
committed
shader-nodes feature: put rust-gpu to wgsl compile behind feature gate
1 parent b2084a4 commit 28268aa

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

frontend/wasm/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ repository = "https://github.com/GraphiteEditor/Graphite"
1111
license = "Apache-2.0"
1212

1313
[features]
14-
default = ["gpu"]
14+
default = ["gpu", "shader-nodes"]
1515
gpu = ["editor/gpu"]
1616
native = []
17+
shader-nodes = ["graphene-std/shader-nodes", "gpu"]
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)