2022-01-26 22:52:57 +11:00
|
|
|
[package]
|
|
|
|
name = "nih_plug"
|
2022-02-06 05:40:42 +11:00
|
|
|
version = "0.0.0"
|
2022-01-26 22:52:57 +11:00
|
|
|
edition = "2021"
|
|
|
|
authors = ["Robbert van der Helm <mail@robbertvanderhelm.nl>"]
|
2022-02-13 02:03:28 +11:00
|
|
|
license = "ISC"
|
2022-01-26 22:52:57 +11:00
|
|
|
|
2022-02-06 05:40:42 +11:00
|
|
|
keywords = ["audio", "plugin", "vst", "vst3"]
|
|
|
|
description = "A simple but modern API-agnostic audio plugin framework"
|
2022-03-08 06:03:05 +11:00
|
|
|
repository = "https://github.com/robbert-vdh/nih-plug"
|
2022-02-06 05:40:42 +11:00
|
|
|
|
2022-01-25 22:23:19 +11:00
|
|
|
[workspace]
|
2022-02-02 05:39:45 +11:00
|
|
|
members = [
|
|
|
|
"nih_plug_derive",
|
2022-02-06 10:22:33 +11:00
|
|
|
"nih_plug_egui",
|
2022-03-13 08:10:14 +11:00
|
|
|
"nih_plug_iced",
|
2022-03-18 09:14:45 +11:00
|
|
|
"nih_plug_vizia",
|
2022-03-02 20:01:48 +11:00
|
|
|
"nih_plug_xtask",
|
2022-03-02 20:27:02 +11:00
|
|
|
|
|
|
|
"cargo_nih_plug",
|
2022-02-02 05:39:45 +11:00
|
|
|
"xtask",
|
|
|
|
|
2022-02-04 02:57:10 +11:00
|
|
|
"plugins/examples/gain",
|
2022-04-15 07:53:14 +10:00
|
|
|
"plugins/examples/gain_gui_egui",
|
|
|
|
"plugins/examples/gain_gui_iced",
|
|
|
|
"plugins/examples/gain_gui_vizia",
|
2022-04-18 10:33:05 +10:00
|
|
|
"plugins/examples/midi_inverter",
|
2022-02-04 02:57:10 +11:00
|
|
|
"plugins/examples/sine",
|
2022-03-06 12:07:53 +11:00
|
|
|
"plugins/examples/stft",
|
2022-02-13 02:27:57 +11:00
|
|
|
|
2022-03-09 03:41:23 +11:00
|
|
|
"plugins/crisp",
|
2022-05-29 21:42:45 +10:00
|
|
|
"plugins/crossover",
|
2022-02-13 02:27:57 +11:00
|
|
|
"plugins/diopser",
|
2022-04-27 23:37:17 +10:00
|
|
|
"plugins/loudness_war_winner",
|
2022-03-08 05:51:38 +11:00
|
|
|
"plugins/puberty_simulator",
|
2022-05-25 07:57:11 +10:00
|
|
|
"plugins/safety_limiter",
|
2022-02-02 05:39:45 +11:00
|
|
|
]
|
2022-01-26 22:52:57 +11:00
|
|
|
|
2022-02-16 04:13:47 +11:00
|
|
|
[features]
|
2022-04-16 00:14:42 +10:00
|
|
|
default = ["vst3"]
|
2022-04-23 01:00:59 +10:00
|
|
|
|
2022-02-16 04:13:47 +11:00
|
|
|
# Enabling this feature will cause the plugin to terminate when allocations
|
2022-04-24 23:40:44 +10:00
|
|
|
# occur in the processing function while compiling in debug mode. Keep in mind
|
|
|
|
# that most panic handlers will also allocate, so temporarily disabling this
|
|
|
|
# feature may be necessary when debugging panics in DSP code.
|
2022-04-16 00:14:42 +10:00
|
|
|
assert_process_allocs = ["dep:assert_no_alloc"]
|
2022-04-23 01:00:59 +10:00
|
|
|
# Enables an export target for standalone binaries through the
|
|
|
|
# `nih_export_standalone()` function. Disabled by default, as this requires
|
|
|
|
# building additional dependencies for audio and MIDI handling.
|
2022-06-15 01:19:09 +10:00
|
|
|
standalone = ["dep:anyhow", "dep:baseview", "dep:clap", "dep:jack"]
|
2022-04-23 01:00:59 +10:00
|
|
|
# Enables the `nih_export_vst3!()` macro. Enabled by default. This feature
|
|
|
|
# exists mostly for GPL-compliance reasons, since even if you don't use the VST3
|
2022-04-16 00:14:42 +10:00
|
|
|
# wrapper you might otherwise still include a couple (unused) symbols from the
|
|
|
|
# `vst3-sys` create.
|
|
|
|
vst3 = ["dep:vst3-sys"]
|
2022-03-02 07:39:53 +11:00
|
|
|
# Add adapters to the Buffer object for reading the channel data to and from
|
|
|
|
# `std::simd` vectors. Requires a nightly compiler.
|
|
|
|
simd = []
|
2022-04-12 00:41:09 +10:00
|
|
|
# Only relevant when generating docs, adds the `doc_auto_cfg` nightly feature
|
|
|
|
docs = []
|
2022-02-16 04:13:47 +11:00
|
|
|
|
2022-01-26 22:52:57 +11:00
|
|
|
[dependencies]
|
|
|
|
nih_plug_derive = { path = "nih_plug_derive" }
|
2022-02-01 05:40:52 +11:00
|
|
|
|
2022-02-06 13:38:59 +11:00
|
|
|
atomic_float = "0.1"
|
2022-03-02 05:52:56 +11:00
|
|
|
atomic_refcell = "0.1"
|
2022-03-23 23:02:54 +11:00
|
|
|
bitflags = "1.3"
|
2022-02-04 01:58:00 +11:00
|
|
|
cfg-if = "1.0"
|
2022-06-04 02:16:21 +10:00
|
|
|
clap-sys = "0.1"
|
2022-02-05 22:46:26 +11:00
|
|
|
crossbeam = "0.8"
|
2022-01-27 10:19:50 +11:00
|
|
|
lazy_static = "1.4"
|
2022-04-24 23:03:27 +10:00
|
|
|
log = { version = "0.4", features = ["std", "release_max_level_info"] }
|
2022-04-28 00:23:12 +10:00
|
|
|
log-panics = { version = "2.0", features = ["with-backtrace"] }
|
2022-04-08 07:28:31 +10:00
|
|
|
midi-consts = "0.1"
|
2022-02-01 03:16:27 +11:00
|
|
|
parking_lot = "0.12"
|
2022-02-08 07:58:59 +11:00
|
|
|
raw-window-handle = "0.4"
|
2022-01-30 00:20:14 +11:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
serde_json = "1.0"
|
2022-04-24 23:03:27 +10:00
|
|
|
simplelog = "0.12"
|
2022-01-27 07:02:52 +11:00
|
|
|
widestring = "1.0.0-beta.1"
|
2022-02-04 01:58:00 +11:00
|
|
|
|
2022-04-23 03:22:23 +10:00
|
|
|
# Used for the `assert_process_allocs` feature
|
2022-02-04 01:58:00 +11:00
|
|
|
assert_no_alloc = { version = "1.1", optional = true }
|
|
|
|
|
2022-04-23 03:22:23 +10:00
|
|
|
# Used for the `standalone` feature
|
2022-06-15 00:27:35 +10:00
|
|
|
anyhow = { version = "1.0", optional = true }
|
2022-04-27 21:13:49 +10:00
|
|
|
# NOTE: OpenGL support is not needed here, but rust-analyzer gets confused when
|
|
|
|
# some crates do use it and others don't
|
|
|
|
baseview = { git = "https://github.com/robbert-vdh/baseview.git", branch = "feature/resize", features = ["opengl"], optional = true }
|
2022-06-14 23:11:03 +10:00
|
|
|
# All the claps!
|
|
|
|
clap = { version = "3.2", features = ["derive"], optional = true }
|
2022-06-15 01:19:09 +10:00
|
|
|
jack = { version = "0.10.0", optional = true }
|
2022-04-23 03:22:23 +10:00
|
|
|
|
|
|
|
# Used for the `vst3` feature
|
|
|
|
vst3-sys = { git = "https://github.com/robbert-vdh/vst3-sys.git", branch = "fix/note-off-event", optional = true }
|
|
|
|
|
2022-04-21 03:36:04 +10:00
|
|
|
[target.'cfg(all(target_family = "unix", not(target_os = "macos")))'.dependencies]
|
|
|
|
libc = "0.2.124"
|
|
|
|
|
2022-04-24 23:03:27 +10:00
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
|
|
# STDIO isn't reliable on Windows, so when hosting plugins in a DAW it may be
|
|
|
|
# useful to log using `OutputDebugString()` instead
|
|
|
|
win_dbg_logger = "0.1"
|
|
|
|
|
2022-04-21 03:36:04 +10:00
|
|
|
[target.'cfg(target_os = "windows")'.dependencies.windows]
|
2022-02-07 10:33:41 +11:00
|
|
|
version = "0.32"
|
|
|
|
features = [
|
|
|
|
"Win32_Foundation",
|
|
|
|
"Win32_Graphics_Gdi",
|
|
|
|
"Win32_UI_WindowsAndMessaging",
|
|
|
|
"Win32_System_LibraryLoader",
|
|
|
|
"Win32_System_Performance",
|
|
|
|
]
|
2022-03-09 11:08:50 +11:00
|
|
|
|
|
|
|
[profile.release]
|
2022-03-09 11:16:48 +11:00
|
|
|
lto = "thin"
|
2022-03-09 11:08:50 +11:00
|
|
|
strip = "symbols"
|
2022-05-23 04:17:15 +10:00
|
|
|
|
|
|
|
[profile.profiling]
|
|
|
|
inherits = "release"
|
|
|
|
debug = true
|
2022-05-23 04:28:25 +10:00
|
|
|
strip = "none"
|