Files
nih-plug-template/Cargo.toml
T

41 lines
1.4 KiB
TOML
Raw Normal View History

2026-08-21 13:07:09 +09:00
[package]
name = "nih_plug_template"
version = "0.1.0"
edition = "2021"
authors = ["Your Name <your@email.com>"]
homepage = "https://github.com/YOUR-USERNAME/YOUR-PLUGIN-NAME"
description = "A minimal NIH-plug audio plugin"
license = "GPL-3.0-or-later"
2026-08-21 13:07:09 +09:00
[workspace]
members = ["xtask"]
2026-08-29 10:24:33 +09:00
[features]
# CLAP only by default. This crate is GPL-3.0-or-later, so enabling VST3 no
# longer raises a licensing question — the gate now just keeps the default build
# light, since `vst3-sys` and its macro machinery are a sizeable dependency a
# CLAP-only plugin never needs. Flip `default` to ["vst3"] if you always want it:
2026-08-29 10:24:33 +09:00
# cargo xtask bundle nih_plug_template --release --features vst3
default = []
vst3 = ["nih_plug/vst3"]
2026-08-21 13:07:09 +09:00
[lib]
# `cdylib` is the plugin binary; `lib` (rlib) lets `cargo test` link the unit tests.
crate-type = ["cdylib", "lib"]
[dependencies]
# Pinned to the same commit as musiikki/codename-206.
# Update the `rev` when you want to update NIH-plug.
2026-08-29 10:24:33 +09:00
# `default-features = false` drops nih_plug's default `vst3` feature; see [features] above.
nih_plug = { git = "https://github.com/robbert-vdh/nih-plug.git", rev = "f36931f7af4646065488a9845d8f8c2f95252c23", default-features = false, features = ["assert_process_allocs"] }
2026-08-21 13:07:09 +09:00
nih_plug_egui = { git = "https://github.com/robbert-vdh/nih-plug.git", rev = "f36931f7af4646065488a9845d8f8c2f95252c23" }
[profile.release]
lto = "thin"
strip = "symbols"
[profile.profiling]
inherits = "release"
debug = true
strip = "none"