1
0
Fork 0

Re-export the nih_plug_derive macro

No need to have to use this crate separately.
This commit is contained in:
Robbert van der Helm 2022-01-26 12:50:30 +01:00
parent 41a0f234bd
commit c3f8b8fb8c
5 changed files with 6 additions and 8 deletions

2
Cargo.lock generated
View file

@ -7,13 +7,13 @@ name = "gain"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"nih_plug", "nih_plug",
"nih_plug_derive",
] ]
[[package]] [[package]]
name = "nih_plug" name = "nih_plug"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"nih_plug_derive",
"vst3-sys", "vst3-sys",
] ]

View file

@ -6,4 +6,5 @@ authors = ["Robbert van der Helm <mail@robbertvanderhelm.nl>"]
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"
[dependencies] [dependencies]
nih_plug_derive = { path = "../nih_plug_derive" }
vst3-sys = { git = "https://github.com/RustAudio/vst3-sys.git" } vst3-sys = { git = "https://github.com/RustAudio/vst3-sys.git" }

View file

@ -19,3 +19,6 @@ pub mod params;
pub mod plugin; pub mod plugin;
pub mod util; pub mod util;
pub mod wrapper; pub mod wrapper;
// Re-export our derive macros to make this a bit easier to use
pub use nih_plug_derive::Params;

View file

@ -7,9 +7,4 @@ edition = "2021"
crate-type = ["cdylib"] crate-type = ["cdylib"]
[dependencies] [dependencies]
nih_plug = { path = "../../nih_plug" }
[dependencies.nih_plug]
path = "../../nih_plug"
[dependencies.nih_plug_derive]
path = "../../nih_plug_derive"

View file

@ -22,7 +22,6 @@ use nih_plug::{
plugin::{BufferConfig, BusConfig, Plugin}, plugin::{BufferConfig, BusConfig, Plugin},
util, util,
}; };
use nih_plug_derive::Params;
use std::pin::Pin; use std::pin::Pin;
struct Gain { struct Gain {