vanderlokken / rust-vst-gui

An extension to the 'rust-vst' crate to create VST plugin GUIs
MIT License
41 stars 14 forks source link

`(dyn vst_gui::lib::PluginGui + 'static)` cannot be sent between threads safely #10

Open Boscop opened 3 years ago

Boscop commented 3 years ago

Since the Plugin trait now requires plugins to be Send (https://github.com/RustAudio/vst-rs/pull/140), when I recompile my VST that uses rust-vst-gui, I get this error:

(dyn vst_gui::lib::PluginGui + 'static) cannot be sent between threads safely

This issue is very urgent, because I need to be able to compile my VST asap :)

Boscop commented 3 years ago

Also, the signature of get_editor changed from

fn get_editor(&mut self) -> Option<&mut dyn Editor> {

to

fn get_editor(&mut self) -> Option<Box<dyn Editor>> {

So this now requires returning an owned instance of PluginGui. But PluginGui is not Clone, so it's not possible :/