[package]
name = "egui-baseview"
version = "0.2.6"
edition = "2024"
authors = ["Billy Messenger <billydm@noreply.codeberg.org>"]
repository = "https://codeberg.org/RustAudio/egui-baseview"
license = "MIT OR Apache-2.0"
description = "A baseview backend for egui"
keywords = ["nice-plug", "plugin", "clap", "vst", "vst3"]
categories = ["gui"]
readme = "README.md"

[features]
default = ["opengl", "tracing"]
opengl = ["dep:egui_glow", "baseview/opengl"]
wgpu = ["dep:egui-wgpu", "dep:raw-window-handle-06", "dep:pollster", "dep:wgpu"]
## Enables a temporary workaround for keyboard input not working sometimes.
## See https://codeberg.org/RustAudio/egui-baseview/issues/20
keyboard_focus_workaround = []
## Enables logging using nice-plug's logging feature
nice-log = ["dep:nice-plug-core"]
## Enable this if `nice-log` is disabled
tracing = ["dep:tracing"]

[dependencies]
baseview = "0.1.4"
raw-window-handle = "0.5"
egui = { version = "0.34.1", default-features = false, features = ["bytemuck"] }
egui_glow = { version = "0.34.1", features = ["x11"], optional = true }
egui-wgpu = { version = "0.34.1", features = ["x11"], optional = true }
wgpu = { version = "29", optional = true }
keyboard-types = { version = "0.6", default-features = false }
raw-window-handle-06 = { package = "raw-window-handle", version = "0.6", optional = true }
copypasta = { version = "0.10", default-features = false, features = ["x11"] }
nice-plug-core = { version = "0.1.3", optional = true }
tracing = { version = "0.1", optional = true }
open = "5.3.3"
pollster = { version = "0.4.0", optional = true }
thiserror = "2"

[dev-dependencies]
egui = { version = "0.34.1", features = ["default_fonts"] }
