1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

Refactor and simplify feature flags

This commit is contained in:
Emil Ernerfeldt
2022-04-11 10:53:16 +02:00
parent 426b933d2f
commit 917f9e1768
6 changed files with 26 additions and 20 deletions

View File

@@ -20,12 +20,15 @@ all-features = true
[features]
default = ["clipboard", "dark-light", "links"]
# implement bytemuck on most types.
bytemuck = ["egui/bytemuck"]
# enable cut/copy/paste to OS clipboard.
# if disabled a clipboard will be simulated so you can still copy/paste within the egui app.
clipboard = ["arboard"]
# implement bytemuck on most types.
bytemuck = ["egui/bytemuck"]
# detect dark mode system preference
dark-light = ["dep:dark-light"]
# Only for `egui_glow` - the official eframe/epi backend.
epi_backend = ["epi", "glow"]
@@ -52,7 +55,7 @@ winit = "0.26.1"
epi = { version = "0.17.0", path = "../epi", optional = true }
arboard = { version = "2.1", optional = true, default-features = false }
dark-light = { version = "0.2.1", optional = true } # detect dark mode system preference
dark-light = { version = "0.2.1", optional = true }
glow = { version = "0.11", optional = true }
serde = { version = "1.0", optional = true, features = ["derive"] }
webbrowser = { version = "0.6", optional = true }