For example, I tried compiling synth.rs using vst = "0.0.2", but vst-gui itself uses vst = "0.0.1". This causes the Rust compiler to throw errors about traits not being implemented when they clearly are.
It might be better if you could make synth.rs not depend on vst at all so that only one version of it is ever used. I tried implementing this myself in rust-vst-gui/lib.rs with:
pub use vst::buffer;
pub use vst::editor;
etc...
and then in synth.rs:
use vst_gui::buffer::AudioBuffer;
etc...
which works fine, but that still leaves the plugin_main! macro which I couldn't figure out.
For example, I tried compiling
synth.rs
usingvst = "0.0.2"
, butvst-gui
itself usesvst = "0.0.1"
. This causes the Rust compiler to throw errors about traits not being implemented when they clearly are.It might be better if you could make
synth.rs
not depend onvst
at all so that only one version of it is ever used. I tried implementing this myself inrust-vst-gui/lib.rs
with:and then in
synth.rs
:which works fine, but that still leaves the
plugin_main!
macro which I couldn't figure out.