1
0
Fork 0

Allow opting out of egui's default features

Since I don't think there's a way to opt out of features from another
Cargo.toml file. You'll still need to enable `nih_plug_egui`'s `opengl`
feature if you disable its default features.
This commit is contained in:
Robbert van der Helm 2022-10-20 15:57:58 +02:00
parent 34fd3a1c2a
commit 8765717793

View file

@ -8,7 +8,12 @@ license = "ISC"
description = "An adapter to use egui GUIs with NIH-plug" description = "An adapter to use egui GUIs with NIH-plug"
[features] [features]
default = ["opengl"] default = ["egui-default-features", "opengl"]
# Use egui's default features
egui-default-features = ["egui/default"]
# `nih_plug_egui` always uses OpenGL since egui's wgpu backend is still unstable
# depending on the platform
opengl = [] opengl = []
[dependencies] [dependencies]
@ -16,7 +21,9 @@ nih_plug = { path = ".." }
baseview = { git = "https://github.com/RustAudio/baseview.git", rev = "eae4033e7d2cc9c31ccaa2794d5d08eedf2f510c" } baseview = { git = "https://github.com/RustAudio/baseview.git", rev = "eae4033e7d2cc9c31ccaa2794d5d08eedf2f510c" }
crossbeam = "0.8" crossbeam = "0.8"
egui = "0.19" # The `egui-default-features` feature enables the default features. This makes
# it possible to opt out of this if needed.
egui = { version = "0.19", default-features = false }
egui-baseview = { git = "https://github.com/BillyDM/egui-baseview.git", rev = "46e21cc11c57c705fb83611389399ec3d2670a44" } egui-baseview = { git = "https://github.com/BillyDM/egui-baseview.git", rev = "46e21cc11c57c705fb83611389399ec3d2670a44" }
lazy_static = "1.4" lazy_static = "1.4"
parking_lot = "0.12" parking_lot = "0.12"