1
0
Fork 0

Add another crate for a proc macro

This commit is contained in:
Robbert van der Helm 2022-01-25 12:29:00 +01:00
parent 736468a510
commit 6357711783
4 changed files with 26 additions and 1 deletions

4
Cargo.lock generated
View file

@ -5,3 +5,7 @@ version = 3
[[package]] [[package]]
name = "nih-plug" name = "nih-plug"
version = "0.1.0" version = "0.1.0"
[[package]]
name = "nih-plug-derive"
version = "0.1.0"

View file

@ -1,2 +1,2 @@
[workspace] [workspace]
members = ["nih-plug"] members = ["nih-plug", "nih-plug-derive"]

View 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"

View file

@ -0,0 +1,8 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}