rust-vst
rust-vst is a library for creating VST plugins in the Rust programming language.
This library is a work in progress, and as such it does not yet implement all functionality. It can create basic VST plugins without an editor interface.
For more detailed information about this library and subtopics such as GUI development progress, please check the wiki.
Library Documentation
Community
For questions, help, or other issues, consider joining our Telegram Chat.
TODO
- Implement all opcodes
- Proper editor support
- Write more tests
- Provide better examples
Crate
VST
is available on crates.io. If you prefer the bleeding-edge, you can also
include the crate directly from the official Github repository.
# get from crates.io.
= "0.1.0"
# get directly from Github. This might be unstable!
= { = "https://github.com/rust-dsp/rust-vst" }
Usage
To create a plugin, simply create a type which implements plugin::Plugin
and
std::default::Default
. Then call the macro plugin_main!
, which will export
the necessary functions and handle dealing with the rest of the API.
Example Plugin
A simple plugin that bears no functionality. The provided Cargo.toml has a crate-type directive which builds a dynamic library, usable by any VST host.
src/lib.rs
extern crate vst;
use ;
;
plugin_main!; // Important!
Cargo.toml
[]
= "basic_vst"
= "0.0.1"
= ["Author <author@example.com>"]
[]
= { = "https://github.com/rust-dsp/rust-vst" }
[]
= "basicvst"
= ["cdylib"]
Packaging on OS X
On OS X VST plugins are packaged inside of loadable bundles.
To package your VST as a loadable bundle you may use the osx_vst_bundler.sh
script this library provides.
Example:
./osx_vst_bundler.sh Plugin target/release/plugin.dylib
Creates a Plugin.vst bundle