- cargo new --lib my_plugin
- add this to Cargo.toml
[lib]
crate-type = ["cdylib"]
[dependencies]
nih_plug = { git = "https://github.com/robbert-vdh/nih-plug", features = [
"assert_process_allocs",
] }
parking_lot = "0.12"
-
copy the defualt gain plugin to lib.rs https://github.com/robbert-vdh/nih-plug/blob/master/plugins/examples/gain/src/lib.rs
-
install build-tool
cargo install --git https://github.com/robbert-vdh/nih-plug.git cargo-nih-plug
- build project
cargo nih-plug bundle my_plugin --release