by RustAudio

RustAudio / vst-rs

VST 2.4 API implementation in rust. Create plugins or hosts. Previously rust-vst on the RustDSP grou...

498 Stars 52 Forks Last release: 11 months ago (v0.2.0) MIT License 381 Commits 3 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Travis Build crates.io dependency status Discord Chat Discourse topics

is a library for creating VST2 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.

Note: If you are upgrading from a version prior to 0.2.0, you will need to update your plugin code to be compatible with the new, thread-safe plugin API. See the

example for a guide on how to port your plugin.

Library Documentation

  • https://rustaudio.github.io/vst-rs/vst/


This crate 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.
vst = "0.2.0"
# get directly from Github.  This might be unstable!
vst = { git = "https://github.com/rustaudio/vst-rs" }


To create a plugin, simply create a type which implements

. Then call the macro
, 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.

extern crate vst;

use vst::plugin::{Info, Plugin};

#[derive(Default)] struct BasicPlugin;

impl Plugin for BasicPlugin { fn get_info(&self) -> Info { Info { name: "Basic Plugin".to_string(), unique_id: 1357, // Used by hosts to differentiate between plugins.



plugin_main!(BasicPlugin); // Important!

name = "basic_vst"
version = "0.0.1"
authors = ["Author "]

[dependencies] vst = { git = "https://github.com/rustaudio/vst-rs" }

[lib] name = "basicvst" crate-type = ["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

script this library provides. 


./osx_vst_bundler.sh Plugin target/release/plugin.dylib
Creates a Plugin.vst bundle

Special Thanks

Marko Mijalkovic for initiating this project

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.