Skip to content

Commit 735d58a

Browse files
authored
Desktop: Remove unnecessary dependencies in the desktop crate (#2934)
* remove unnecessary dependencies * Add start-desktop
1 parent e6f1ad9 commit 735d58a

File tree

5 files changed

+22
-28
lines changed

5 files changed

+22
-28
lines changed

Cargo.lock

Lines changed: 1 addition & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ iai-callgrind = { version = "0.12.3" }
156156
ndarray = "0.16.1"
157157
strum = { version = "0.26.3", features = ["derive"] }
158158
dirs = "6.0"
159+
cef = "138.5.0"
160+
include_dir = "0.7.4"
161+
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
162+
tracing = "0.1.41"
159163

160164
[profile.dev]
161165
opt-level = 1

desktop/Cargo.toml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,23 @@ edition = "2024"
99
rust-version = "1.87"
1010

1111
[features]
12-
default = ["gpu"]
13-
gpu = ["graphite-editor/gpu"]
12+
# default = ["gpu"]
13+
# gpu = ["graphite-editor/gpu"]
1414

1515
[dependencies]
1616
# Local dependencies
17-
graphite-editor = { path = "../editor", features = [
18-
"gpu",
19-
"ron",
20-
"vello",
21-
"decouple-execution",
22-
] }
17+
# graphite-editor = { path = "../editor", features = [
18+
# "gpu",
19+
# "ron",
20+
# "vello",
21+
# "decouple-execution",
22+
# ] }
2323
wgpu = { workspace = true }
2424
winit = { workspace = true, features = ["serde"] }
25-
base64.workspace = true
26-
thiserror.workspace = true
27-
pollster = "0.3"
28-
cef = "138.5.0"
29-
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
30-
tracing = "0.1.41"
31-
bytemuck = { version = "1.23.1", features = ["derive"] }
32-
include_dir = "0.7.4"
33-
dirs.workspace = true
25+
thiserror = { workspace = true }
26+
futures = { workspace = true }
27+
cef = { workspace = true }
28+
include_dir = { workspace = true }
29+
tracing-subscriber = { workspace = true }
30+
tracing = { workspace = true }
31+
dirs = {workspace = true}

desktop/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl ApplicationHandler<CustomEvent> for WinitApp {
7171
)
7272
.unwrap(),
7373
);
74-
let graphics_state = pollster::block_on(GraphicsState::new(window.clone()));
74+
let graphics_state = futures::executor::block_on(GraphicsState::new(window.clone()));
7575

7676
self.window = Some(window);
7777
self.graphics_state = Some(graphics_state);

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"scripts": {
55
"---------- DEV SERVER ----------": "",
66
"start": "cd frontend && npm start",
7+
"start-desktop": "cd frontend && npm run build-dev && cargo run -p graphite-desktop",
78
"profiling": "cd frontend && npm run profiling",
89
"production": "cd frontend && npm run production",
910
"---------- BUILDS ----------": "",

0 commit comments

Comments
 (0)