Desktop: Remove unnecessary dependencies in the desktop crate (#2934)
* remove unnecessary dependencies * Add start-desktop
This commit is contained in:
parent
e6f1ad96b3
commit
735d58a647
|
|
@ -1817,13 +1817,10 @@ dependencies = [
|
||||||
name = "graphite-desktop"
|
name = "graphite-desktop"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.22.1",
|
|
||||||
"bytemuck",
|
|
||||||
"cef",
|
"cef",
|
||||||
"dirs",
|
"dirs",
|
||||||
"graphite-editor",
|
"futures",
|
||||||
"include_dir",
|
"include_dir",
|
||||||
"pollster",
|
|
||||||
"thiserror 2.0.12",
|
"thiserror 2.0.12",
|
||||||
"tracing",
|
"tracing",
|
||||||
"tracing-subscriber",
|
"tracing-subscriber",
|
||||||
|
|
@ -3629,12 +3626,6 @@ dependencies = [
|
||||||
"windows-sys 0.59.0",
|
"windows-sys 0.59.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "pollster"
|
|
||||||
version = "0.3.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "22686f4785f02a4fcc856d3b3bb19bf6c8160d103f7a99cc258bddd0251dc7f2"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "portable-atomic"
|
name = "portable-atomic"
|
||||||
version = "1.11.1"
|
version = "1.11.1"
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,10 @@ iai-callgrind = { version = "0.12.3" }
|
||||||
ndarray = "0.16.1"
|
ndarray = "0.16.1"
|
||||||
strum = { version = "0.26.3", features = ["derive"] }
|
strum = { version = "0.26.3", features = ["derive"] }
|
||||||
dirs = "6.0"
|
dirs = "6.0"
|
||||||
|
cef = "138.5.0"
|
||||||
|
include_dir = "0.7.4"
|
||||||
|
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
|
||||||
|
tracing = "0.1.41"
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
opt-level = 1
|
opt-level = 1
|
||||||
|
|
|
||||||
|
|
@ -9,25 +9,23 @@ edition = "2024"
|
||||||
rust-version = "1.87"
|
rust-version = "1.87"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["gpu"]
|
# default = ["gpu"]
|
||||||
gpu = ["graphite-editor/gpu"]
|
# gpu = ["graphite-editor/gpu"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# Local dependencies
|
# Local dependencies
|
||||||
graphite-editor = { path = "../editor", features = [
|
# graphite-editor = { path = "../editor", features = [
|
||||||
"gpu",
|
# "gpu",
|
||||||
"ron",
|
# "ron",
|
||||||
"vello",
|
# "vello",
|
||||||
"decouple-execution",
|
# "decouple-execution",
|
||||||
] }
|
# ] }
|
||||||
wgpu = { workspace = true }
|
wgpu = { workspace = true }
|
||||||
winit = { workspace = true, features = ["serde"] }
|
winit = { workspace = true, features = ["serde"] }
|
||||||
base64.workspace = true
|
thiserror = { workspace = true }
|
||||||
thiserror.workspace = true
|
futures = { workspace = true }
|
||||||
pollster = "0.3"
|
cef = { workspace = true }
|
||||||
cef = "138.5.0"
|
include_dir = { workspace = true }
|
||||||
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
|
tracing-subscriber = { workspace = true }
|
||||||
tracing = "0.1.41"
|
tracing = { workspace = true }
|
||||||
bytemuck = { version = "1.23.1", features = ["derive"] }
|
dirs = {workspace = true}
|
||||||
include_dir = "0.7.4"
|
|
||||||
dirs.workspace = true
|
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ impl ApplicationHandler<CustomEvent> for WinitApp {
|
||||||
)
|
)
|
||||||
.unwrap(),
|
.unwrap(),
|
||||||
);
|
);
|
||||||
let graphics_state = pollster::block_on(GraphicsState::new(window.clone()));
|
let graphics_state = futures::executor::block_on(GraphicsState::new(window.clone()));
|
||||||
|
|
||||||
self.window = Some(window);
|
self.window = Some(window);
|
||||||
self.graphics_state = Some(graphics_state);
|
self.graphics_state = Some(graphics_state);
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"---------- DEV SERVER ----------": "",
|
"---------- DEV SERVER ----------": "",
|
||||||
"start": "cd frontend && npm start",
|
"start": "cd frontend && npm start",
|
||||||
|
"start-desktop": "cd frontend && npm run build-dev && cargo run -p graphite-desktop",
|
||||||
"profiling": "cd frontend && npm run profiling",
|
"profiling": "cd frontend && npm run profiling",
|
||||||
"production": "cd frontend && npm run production",
|
"production": "cd frontend && npm run production",
|
||||||
"---------- BUILDS ----------": "",
|
"---------- BUILDS ----------": "",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue