Add another crate for a proc macro
This commit is contained in:
parent
736468a510
commit
6357711783
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -5,3 +5,7 @@ version = 3
|
|||
[[package]]
|
||||
name = "nih-plug"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "nih-plug-derive"
|
||||
version = "0.1.0"
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
[workspace]
|
||||
members = ["nih-plug"]
|
||||
members = ["nih-plug", "nih-plug-derive"]
|
||||
|
|
13
nih-plug-derive/Cargo.toml
Normal file
13
nih-plug-derive/Cargo.toml
Normal file
|
@ -0,0 +1,13 @@
|
|||
[package]
|
||||
name = "nih-plug-derive"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
authors = ["Robbert van der Helm <mail@robbertvanderhelm.nl>"]
|
||||
license = "GPL-3.0-or-later"
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
syn = "1.0"
|
||||
quote = "1.0"
|
8
nih-plug-derive/src/lib.rs
Normal file
8
nih-plug-derive/src/lib.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = 2 + 2;
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue