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"
|
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",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -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" }
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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"
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue