Skip to content

Commit ad36f25

Browse files
committed
Cleanup features
1 parent c30dec8 commit ad36f25

7 files changed

Lines changed: 3 additions & 19 deletions

File tree

desktop/wrapper/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ gpu = ["graphite-editor/gpu"]
1616
# Local dependencies
1717
graphite-editor = { path = "../../editor", features = [
1818
"gpu",
19-
"vello",
2019
] }
2120
graphene-std = { workspace = true }
2221
graph-craft = { workspace = true }

editor/Cargo.toml

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

1313
[features]
14-
default = ["wasm", "gpu", "resvg", "vello"]
14+
default = ["wasm", "gpu" ]
1515
wasm = ["wasm-bindgen", "graphene-std/wasm"]
1616
gpu = ["interpreted-executor/gpu", "wgpu-executor"]
17-
resvg = ["graphene-std/resvg"]
18-
vello = ["graphene-std/vello", "resvg"]
1917

2018
[dependencies]
2119
# Local dependencies
@@ -59,8 +57,3 @@ env_logger = { workspace = true }
5957
futures = { workspace = true }
6058
tokio = { workspace = true }
6159

62-
[lints.rust]
63-
# TODO: figure out why we check these features when they do not exist
64-
unexpected_cfgs = { level = "warn", check-cfg = [
65-
'cfg(feature, values("resvg", "vello"))',
66-
] }

editor/src/node_graph_executor.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,7 @@ impl NodeGraphExecutor {
150150
viewport,
151151
scale: viewport_scale,
152152
time,
153-
#[cfg(any(feature = "resvg", feature = "vello"))]
154153
export_format: graphene_std::application_io::ExportFormat::Raster,
155-
#[cfg(not(any(feature = "resvg", feature = "vello")))]
156-
export_format: graphene_std::application_io::ExportFormat::Svg,
157154
render_mode: document.render_mode,
158155
hide_artboards: false,
159156
for_export: false,

frontend/wasm/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ crate-type = ["cdylib", "rlib"]
2323
# Local dependencies
2424
editor = { path = "../../editor", package = "graphite-editor", features = [
2525
"gpu",
26-
"resvg",
27-
"vello",
2826
] }
2927
graphene-std = { workspace = true }
3028

node-graph/graph-craft/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ edition = "2024"
55
license = "MIT OR Apache-2.0"
66

77
[features]
8-
default = ["dealloc_nodes"]
8+
default = ["dealloc_nodes", "wgpu"]
99
dealloc_nodes = ["core-types/dealloc_nodes"]
1010
wgpu = ["wgpu-executor"]
1111
tokio = ["dep:tokio"]
12-
wayland = []
1312
loading = ["serde_json"]
1413

1514
[dependencies]

node-graph/graphene-cli/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ license = "MIT OR Apache-2.0"
99
[features]
1010
default = ["wgpu"]
1111
wgpu = ["wgpu-executor", "gpu", "graphene-std/wgpu"]
12-
wayland = ["graphene-std/wayland"]
1312
gpu = ["interpreted-executor/gpu", "graphene-std/gpu", "wgpu-executor"]
1413

1514
[dependencies]

node-graph/nodes/gstd/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = ["Graphite Authors <contact@graphite.rs>"]
77
license = "MIT OR Apache-2.0"
88

99
[features]
10-
default = ["wasm", "wgpu"]
10+
default = ["wasm", "wgpu", "shader-nodes"]
1111
gpu = []
1212
wgpu = ["gpu", "graph-craft/wgpu", "graphene-application-io/wgpu"]
1313
wasm = [
@@ -20,7 +20,6 @@ wasm = [
2020
image-compare = []
2121
vello = ["gpu"]
2222
resvg = []
23-
wayland = ["graph-craft/wayland"]
2423
shader-nodes = ["raster-nodes/shader-nodes"]
2524

2625
[dependencies]

0 commit comments

Comments
 (0)