2022-03-13 08:10:14 +11:00
|
|
|
[package]
|
|
|
|
name = "nih_plug_iced"
|
|
|
|
version = "0.0.0"
|
|
|
|
edition = "2021"
|
|
|
|
authors = ["Robbert van der Helm <mail@robbertvanderhelm.nl>"]
|
|
|
|
license = "ISC"
|
|
|
|
|
|
|
|
description = "An adapter to use iced GUIs with NIH-plug"
|
|
|
|
|
2022-03-13 08:24:01 +11:00
|
|
|
[features]
|
2022-03-14 06:14:45 +11:00
|
|
|
default = ["opengl"]
|
2022-03-13 08:24:01 +11:00
|
|
|
|
|
|
|
# Use wgpu rendering, which translates to Vulkan, Metal, or Direct3D12 depending
|
|
|
|
# on the platform.
|
2022-03-13 09:15:33 +11:00
|
|
|
# NOTE: The OpenGL support in baseview is not used, this is just a workaround
|
|
|
|
# for a rust analyzer bug. See the comment in lib.rs.
|
|
|
|
wgpu = ["iced_baseview/wgpu", "baseview/opengl"]
|
2022-03-13 08:24:01 +11:00
|
|
|
# Use OpenGL instead of wgpu for the rendering. This should increase platform
|
|
|
|
# compatibility at the cost of some iced features not being available.
|
|
|
|
opengl = ["iced_baseview/glow"]
|
|
|
|
|
|
|
|
# Enables a debug view in native platforms (press F12)
|
|
|
|
debug = ["iced_baseview/debug"]
|
|
|
|
|
2022-03-13 23:35:13 +11:00
|
|
|
# Enables the `Image` widget, only supported by the wgpu backend
|
2022-03-14 00:14:41 +11:00
|
|
|
wgpu_image = ["iced_baseview/wgpu_image"]
|
2022-03-13 23:35:13 +11:00
|
|
|
# Enables the `Svg` widget, only supported by the wgpu backend
|
2022-03-14 00:14:41 +11:00
|
|
|
wgpu_svg = ["iced_baseview/wgpu_svg"]
|
2022-03-13 23:35:13 +11:00
|
|
|
|
2022-03-13 08:24:01 +11:00
|
|
|
# Enables the `Canvas` widget for the wgpu backend
|
2022-03-14 00:14:41 +11:00
|
|
|
wgpu_canvas = ["iced_baseview/wgpu_canvas"]
|
2022-03-13 08:24:01 +11:00
|
|
|
# Enables the `Canvas` widget for the OpenGL backend
|
|
|
|
opengl_canvas = ["iced_baseview/glow_canvas"]
|
|
|
|
|
|
|
|
# Enables the `QRCode` widget for the wgpu backend
|
2022-03-14 00:14:41 +11:00
|
|
|
wgpu_qr_code = ["iced_baseview/wgpu_qr_code"]
|
2022-03-13 08:24:01 +11:00
|
|
|
# Enables the `QRCode` widget for the OpenGL backend
|
|
|
|
opengl_qr_code = ["iced_baseview/glow_qr_code"]
|
|
|
|
|
|
|
|
# Enables using system fonts for the wgpu backend
|
2022-03-14 00:14:41 +11:00
|
|
|
wgpu_default_system_font = ["iced_baseview/wgpu_default_system_font"]
|
2022-03-13 08:24:01 +11:00
|
|
|
# Enables using system fonts for the OpenGL backend
|
|
|
|
opengl_default_system_font = ["iced_baseview/glow_default_system_font"]
|
|
|
|
|
|
|
|
# Enables advanced color conversion via `palette`
|
|
|
|
palette = ["iced_baseview/palette"]
|
|
|
|
|
|
|
|
# Enables `tokio` as the `executor::Default` on native platforms
|
|
|
|
tokio = ["iced_baseview/tokio"]
|
|
|
|
# Enables `async-std` as the `executor::Default` on native platforms
|
|
|
|
async-std = ["iced_baseview/async-std"]
|
|
|
|
# Enables `smol` as the `executor::Default` on native platforms
|
|
|
|
smol = ["iced_baseview/smol"]
|
|
|
|
|
2022-03-13 08:10:14 +11:00
|
|
|
[dependencies]
|
|
|
|
nih_plug = { path = ".." }
|
2022-03-15 01:50:24 +11:00
|
|
|
nih_plug_assets = { git = "https://github.com/robbert-vdh/nih_plug_assets.git" }
|
2022-03-13 08:10:14 +11:00
|
|
|
|
2022-03-15 22:48:40 +11:00
|
|
|
atomic_refcell = "0.1"
|
2022-12-03 05:23:24 +11:00
|
|
|
baseview = { git = "https://github.com/RustAudio/baseview.git" }
|
2022-03-13 09:15:33 +11:00
|
|
|
crossbeam = "0.8"
|
2022-03-13 08:10:14 +11:00
|
|
|
# Upstream doesn't work with the current iced version, this branch also contains
|
|
|
|
# additional features
|
2022-03-14 23:34:03 +11:00
|
|
|
iced_baseview = { git = "https://github.com/robbert-vdh/iced_baseview.git", branch = "feature/update-baseview", default_features = false }
|
2022-07-14 07:10:36 +10:00
|
|
|
# To make the state persistable
|
|
|
|
serde = { version = "1.0", features = ["derive"] }
|