# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

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

[features]
default = [
    "opengl",
    "tracing",
]
keyboard_focus_workaround = []
nice-log = ["dep:nice-plug-core"]
opengl = [
    "dep:egui_glow",
    "baseview/opengl",
]
tracing = ["dep:tracing"]
wgpu = [
    "dep:egui-wgpu",
    "dep:raw-window-handle-06",
    "dep:pollster",
    "dep:wgpu",
]

[lib]
name = "egui_baseview"
path = "src/lib.rs"

[[example]]
name = "hello_world"
path = "examples/hello_world.rs"

[[example]]
name = "render_test"
path = "examples/render_test.rs"

[[example]]
name = "simple_demo"
path = "examples/simple_demo.rs"

[dependencies.baseview]
version = "0.1.4"

[dependencies.copypasta]
version = "0.10"
features = ["x11"]
default-features = false

[dependencies.egui]
version = "0.34.1"
features = ["bytemuck"]
default-features = false

[dependencies.egui-wgpu]
version = "0.34.1"
features = ["x11"]
optional = true

[dependencies.egui_glow]
version = "0.34.1"
features = ["x11"]
optional = true

[dependencies.keyboard-types]
version = "0.6"
default-features = false

[dependencies.nice-plug-core]
version = "0.1.3"
optional = true

[dependencies.open]
version = "5.3.3"

[dependencies.pollster]
version = "0.4.0"
optional = true

[dependencies.raw-window-handle]
version = "0.5"

[dependencies.raw-window-handle-06]
version = "0.6"
optional = true
package = "raw-window-handle"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.wgpu]
version = "29"
optional = true

[dev-dependencies.egui]
version = "0.34.1"
features = ["default_fonts"]
