Re-export the nih_plug_derive macro
No need to have to use this crate separately.
This commit is contained in:
parent
41a0f234bd
commit
c3f8b8fb8c
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -7,13 +7,13 @@ name = "gain"
|
|||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"nih_plug",
|
||||
"nih_plug_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "nih_plug"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"nih_plug_derive",
|
||||
"vst3-sys",
|
||||
]
|
||||
|
||||
|
|
|
@ -6,4 +6,5 @@ authors = ["Robbert van der Helm <mail@robbertvanderhelm.nl>"]
|
|||
license = "GPL-3.0-or-later"
|
||||
|
||||
[dependencies]
|
||||
nih_plug_derive = { path = "../nih_plug_derive" }
|
||||
vst3-sys = { git = "https://github.com/RustAudio/vst3-sys.git" }
|
||||
|
|
|
@ -19,3 +19,6 @@ pub mod params;
|
|||
pub mod plugin;
|
||||
pub mod util;
|
||||
pub mod wrapper;
|
||||
|
||||
// Re-export our derive macros to make this a bit easier to use
|
||||
pub use nih_plug_derive::Params;
|
||||
|
|
|
@ -7,9 +7,4 @@ edition = "2021"
|
|||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
|
||||
[dependencies.nih_plug]
|
||||
path = "../../nih_plug"
|
||||
|
||||
[dependencies.nih_plug_derive]
|
||||
path = "../../nih_plug_derive"
|
||||
nih_plug = { path = "../../nih_plug" }
|
||||
|
|
|
@ -22,7 +22,6 @@ use nih_plug::{
|
|||
plugin::{BufferConfig, BusConfig, Plugin},
|
||||
util,
|
||||
};
|
||||
use nih_plug_derive::Params;
|
||||
use std::pin::Pin;
|
||||
|
||||
struct Gain {
|
||||
|
|
Loading…
Reference in a new issue