multi-plugin structure
This commit is contained in:
parent
fb3ba5d291
commit
ac98cbe6c7
9 changed files with 64 additions and 25 deletions
1
plugins/dfpworm/.gitignore
vendored
Normal file
1
plugins/dfpworm/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/target
|
12
plugins/dfpworm/Cargo.toml
Normal file
12
plugins/dfpworm/Cargo.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
[package]
|
||||
name = "dfpworm"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
atomic_float = "1.1"
|
||||
nih_plug = { git = "https://github.com/robbert-vdh/nih-plug.git", version = "0.0.0", features = ["assert_process_allocs"] }
|
||||
nih_plug_vizia = { git = "https://github.com/robbert-vdh/nih-plug.git", version = "0.0.0" }
|
14
plugins/dfpworm/src/lib.rs
Normal file
14
plugins/dfpworm/src/lib.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
pub fn add(left: u64, right: u64) -> u64 {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue