Adapt raw_window_handle 0.4 for nih_plug_iced

I tried updating iced instead, but after a couple hours porting things I
gave up. Supporting newer iced versions will probably require rebuilding
the crate from scratch.
This commit is contained in:
Robbert van der Helm
2023-11-05 19:35:13 +01:00
parent a16cbd6aad
commit 76ef4d0ff9
3 changed files with 38 additions and 25 deletions

View File

@@ -59,11 +59,14 @@ smol = ["iced_baseview/smol"]
nih_plug = { path = ".." }
nih_plug_assets = { git = "https://github.com/robbert-vdh/nih_plug_assets.git" }
# The currently targeted version of baseview uses a different version of
# `raw_window_handle` than NIH-plug, so we need to manually convert between them
raw-window-handle = "0.4"
atomic_refcell = "0.1"
baseview = { git = "https://github.com/RustAudio/baseview.git" }
baseview = { git = "https://github.com/RustAudio/baseview.git", rev = "1d9806d5bd92275d0d8142d9c9c90198757b9b25" }
crossbeam = "0.8"
# Upstream doesn't work with the current iced version, this branch also contains
# additional features
# This targets iced 0.4
iced_baseview = { git = "https://github.com/robbert-vdh/iced_baseview.git", branch = "feature/update-baseview", default_features = false }
# To make the state persistable
serde = { version = "1.0", features = ["derive"] }