multi-plugin structure

This commit is contained in:
Haze Weathers 2025-09-16 14:15:12 -06:00
parent fb3ba5d291
commit ac98cbe6c7
9 changed files with 64 additions and 25 deletions

28
Cargo.lock generated
View file

@ -903,6 +903,15 @@ dependencies = [
"syn 2.0.106",
]
[[package]]
name = "dfpworm"
version = "0.1.0"
dependencies = [
"atomic_float 1.1.0",
"nih_plug",
"nih_plug_vizia",
]
[[package]]
name = "digest"
version = "0.10.7"
@ -1235,6 +1244,15 @@ dependencies = [
"byteorder",
]
[[package]]
name = "gain"
version = "0.1.0"
dependencies = [
"atomic_float 1.1.0",
"nih_plug",
"nih_plug_vizia",
]
[[package]]
name = "generational-arena"
version = "0.2.9"
@ -1588,16 +1606,6 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
[[package]]
name = "learner_plug"
version = "0.1.0"
dependencies = [
"atomic_float 1.1.0",
"nih_plug",
"nih_plug_vizia",
"parking_lot",
]
[[package]]
name = "libc"
version = "0.2.175"

View file

@ -1,16 +1,7 @@
[package]
name = "learner_plug"
version = "0.1.0"
edition = "2024"
[lib]
crate-type = ["cdylib", "lib"]
[dependencies]
atomic_float = "1.1.0"
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" }
parking_lot = "0.12.4"
[workspace]
members = ["xtask"]
resolver = "3"
members = [
"xtask",
"plugins/dfpworm",
"plugins/gain",
]

1
plugins/dfpworm/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

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

View 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);
}
}

1
plugins/gain/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/target

12
plugins/gain/Cargo.toml Normal file
View file

@ -0,0 +1,12 @@
[package]
name = "gain"
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" }