add a feature flag for gui so we don't build all gui deps for cli
This commit is contained in:
parent
7ff9399178
commit
87045180dc
5 changed files with 149 additions and 600 deletions
15
Cargo.toml
15
Cargo.toml
|
|
@ -13,9 +13,13 @@ path = "src/main.rs"
|
|||
[[bin]]
|
||||
name = "blast-gui"
|
||||
path = "src/gui/main.rs"
|
||||
required-features = ["gui"]
|
||||
|
||||
[features]
|
||||
default = []
|
||||
gui = ["dep:eframe", "dep:egui", "dep:egui_extras", "dep:ab_glyph"]
|
||||
|
||||
[dependencies]
|
||||
ab_glyph = "0.2"
|
||||
clap = { version = "4", features = ["derive"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
|
|
@ -26,7 +30,7 @@ wayland-protocols-wlr = { version = "0.2", features = ["client"] }
|
|||
wayland-protocols = { version = "0.31", features = ["client", "staging", "unstable"] }
|
||||
wayland-scanner = "0.31"
|
||||
wayland-backend = "0.3"
|
||||
image = { version = "0.25", features = ["png"] }
|
||||
image = { version = "0.25", default-features=false, features = ["png"] }
|
||||
png = "0.17"
|
||||
dirs = "5"
|
||||
rand = "0.8"
|
||||
|
|
@ -36,6 +40,7 @@ libc = "0.2"
|
|||
tempfile = "3"
|
||||
gbm = "0.18"
|
||||
memmap2 = "0.9"
|
||||
eframe = { version = "0.29", features = ["wayland"] }
|
||||
egui = "0.29"
|
||||
egui_extras = { version = "0.29", features = ["image"] }
|
||||
ab_glyph = { version = "0.2", optional = true }
|
||||
eframe = { version = "0.29", features = ["wayland"], optional = true }
|
||||
egui = { version = "0.29", optional = true }
|
||||
egui_extras = { version = "0.29", features = ["image"], optional = true }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue