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:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user