2022-01-26 12:52:57 +01:00
|
|
|
[package]
|
|
|
|
name = "nih_plug"
|
2022-02-05 19:40:42 +01:00
|
|
|
version = "0.0.0"
|
2022-01-26 12:52:57 +01:00
|
|
|
edition = "2021"
|
|
|
|
authors = ["Robbert van der Helm <mail@robbertvanderhelm.nl>"]
|
2022-02-12 16:03:28 +01:00
|
|
|
license = "ISC"
|
2022-01-26 12:52:57 +01:00
|
|
|
|
2022-02-05 19:40:42 +01:00
|
|
|
keywords = ["audio", "plugin", "vst", "vst3"]
|
|
|
|
description = "A simple but modern API-agnostic audio plugin framework"
|
2022-03-07 20:03:05 +01:00
|
|
|
repository = "https://github.com/robbert-vdh/nih-plug"
|
2022-02-05 19:40:42 +01:00
|
|
|
|
2022-01-25 12:23:19 +01:00
|
|
|
[workspace]
|
2022-02-01 19:39:45 +01:00
|
|
|
members = [
|
|
|
|
"nih_plug_derive",
|
2022-02-06 00:22:33 +01:00
|
|
|
"nih_plug_egui",
|
2022-03-12 22:10:14 +01:00
|
|
|
"nih_plug_iced",
|
2022-03-17 23:14:45 +01:00
|
|
|
"nih_plug_vizia",
|
2022-03-02 10:01:48 +01:00
|
|
|
"nih_plug_xtask",
|
2022-03-02 10:27:02 +01:00
|
|
|
|
|
|
|
"cargo_nih_plug",
|
2022-02-01 19:39:45 +01:00
|
|
|
"xtask",
|
|
|
|
|
2022-02-03 16:57:10 +01:00
|
|
|
"plugins/examples/gain",
|
2022-04-14 23:53:14 +02:00
|
|
|
"plugins/examples/gain_gui_egui",
|
|
|
|
"plugins/examples/gain_gui_iced",
|
|
|
|
"plugins/examples/gain_gui_vizia",
|
2022-04-18 02:33:05 +02:00
|
|
|
"plugins/examples/midi_inverter",
|
2022-07-06 13:55:53 +02:00
|
|
|
"plugins/examples/poly_mod_synth",
|
2022-02-03 16:57:10 +01:00
|
|
|
"plugins/examples/sine",
|
2022-03-06 02:07:53 +01:00
|
|
|
"plugins/examples/stft",
|
2022-02-12 16:27:57 +01:00
|
|
|
|
2022-03-08 17:41:23 +01:00
|
|
|
"plugins/crisp",
|
2022-05-29 13:42:45 +02:00
|
|
|
"plugins/crossover",
|
2022-02-12 16:27:57 +01:00
|
|
|
"plugins/diopser",
|
2022-04-27 15:37:17 +02:00
|
|
|
"plugins/loudness_war_winner",
|
2022-03-07 19:51:38 +01:00
|
|
|
"plugins/puberty_simulator",
|
2022-05-24 23:57:11 +02:00
|
|
|
"plugins/safety_limiter",
|
2022-02-01 19:39:45 +01:00
|
|
|
]
|
2022-01-26 12:52:57 +01:00
|
|
|
|
2022-02-15 18:13:47 +01:00
|
|
|
[features]
|
2022-04-15 16:14:42 +02:00
|
|
|
default = ["vst3"]
|
2022-04-22 17:00:59 +02:00
|
|
|
|
2022-02-15 18:13:47 +01:00
|
|
|
# Enabling this feature will cause the plugin to terminate when allocations
|
2022-07-08 02:18:24 +02:00
|
|
|
# occur in the processing function during debug builds. Keep in mind that panics
|
|
|
|
# may also allocate if they use string formatting, so temporarily disabling this
|
2022-04-24 15:40:44 +02:00
|
|
|
# feature may be necessary when debugging panics in DSP code.
|
2022-04-15 16:14:42 +02:00
|
|
|
assert_process_allocs = ["dep:assert_no_alloc"]
|
2022-04-22 17:00:59 +02:00
|
|
|
# Enables an export target for standalone binaries through the
|
2022-07-08 02:18:24 +02:00
|
|
|
# `nih_export_standalone()` function. Disabled by default as this requires
|
2022-04-22 17:00:59 +02:00
|
|
|
# building additional dependencies for audio and MIDI handling.
|
2022-06-14 17:19:09 +02:00
|
|
|
standalone = ["dep:anyhow", "dep:baseview", "dep:clap", "dep:jack"]
|
2022-04-22 17:00:59 +02: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-15 16:14:42 +02:00
|
|
|
# wrapper you might otherwise still include a couple (unused) symbols from the
|
2022-07-08 02:18:24 +02:00
|
|
|
# `vst3-sys` crate.
|
2022-04-15 16:14:42 +02:00
|
|
|
vst3 = ["dep:vst3-sys"]
|
2022-03-01 21:39:53 +01: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-11 16:41:09 +02:00
|
|
|
# Only relevant when generating docs, adds the `doc_auto_cfg` nightly feature
|
|
|
|
docs = []
|
2022-02-15 18:13:47 +01:00
|
|
|
|
2022-01-26 12:52:57 +01:00
|
|
|
[dependencies]
|
|
|
|
nih_plug_derive = { path = "nih_plug_derive" }
|
2022-01-31 19:40:52 +01:00
|
|
|
|
2022-02-06 03:38:59 +01:00
|
|
|
atomic_float = "0.1"
|
2022-03-01 19:52:56 +01:00
|
|
|
atomic_refcell = "0.1"
|
2022-06-26 23:13:35 +02:00
|
|
|
backtrace = "0.3.65"
|
2022-03-23 13:02:54 +01:00
|
|
|
bitflags = "1.3"
|
2022-02-03 15:58:00 +01:00
|
|
|
cfg-if = "1.0"
|
2022-07-08 02:19:43 +02:00
|
|
|
clap-sys = "0.3"
|
2022-02-05 12:46:26 +01:00
|
|
|
crossbeam = "0.8"
|
2022-01-27 00:19:50 +01:00
|
|
|
lazy_static = "1.4"
|
2022-04-24 15:03:27 +02:00
|
|
|
log = { version = "0.4", features = ["std", "release_max_level_info"] }
|
2022-04-07 23:28:31 +02:00
|
|
|
midi-consts = "0.1"
|
2022-01-31 17:16:27 +01:00
|
|
|
parking_lot = "0.12"
|
2022-02-07 21:58:59 +01:00
|
|
|
raw-window-handle = "0.4"
|
2022-01-29 14:20:14 +01:00
|
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
|
|
serde_json = "1.0"
|
2022-04-24 15:03:27 +02:00
|
|
|
simplelog = "0.12"
|
2022-01-26 21:02:52 +01:00
|
|
|
widestring = "1.0.0-beta.1"
|
2022-02-03 15:58:00 +01:00
|
|
|
|
2022-04-22 19:22:23 +02:00
|
|
|
# Used for the `assert_process_allocs` feature
|
2022-02-03 15:58:00 +01:00
|
|
|
assert_no_alloc = { version = "1.1", optional = true }
|
|
|
|
|
2022-04-22 19:22:23 +02:00
|
|
|
# Used for the `standalone` feature
|
2022-06-14 16:27:35 +02:00
|
|
|
anyhow = { version = "1.0", optional = true }
|
2022-04-27 13:13:49 +02: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 15:11:03 +02:00
|
|
|
# All the claps!
|
|
|
|
clap = { version = "3.2", features = ["derive"], optional = true }
|
2022-07-13 17:52:43 +02:00
|
|
|
# The current upstream jack panics when it can't load the JACK library, which breaks the backend fallback
|
|
|
|
jack = { git = "https://github.com/robbert-vdh/rust-jack.git", branch = "feature/handle-library-failure", optional = true }
|
2022-04-22 19:22:23 +02: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-20 19:36:04 +02:00
|
|
|
[target.'cfg(all(target_family = "unix", not(target_os = "macos")))'.dependencies]
|
|
|
|
libc = "0.2.124"
|
|
|
|
|
2022-04-24 15:03:27 +02: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-20 19:36:04 +02:00
|
|
|
[target.'cfg(target_os = "windows")'.dependencies.windows]
|
2022-02-07 00:33:41 +01:00
|
|
|
version = "0.32"
|
|
|
|
features = [
|
|
|
|
"Win32_Foundation",
|
|
|
|
"Win32_Graphics_Gdi",
|
|
|
|
"Win32_UI_WindowsAndMessaging",
|
|
|
|
"Win32_System_LibraryLoader",
|
|
|
|
"Win32_System_Performance",
|
|
|
|
]
|
2022-03-09 01:08:50 +01:00
|
|
|
|
|
|
|
[profile.release]
|
2022-03-09 01:16:48 +01:00
|
|
|
lto = "thin"
|
2022-03-09 01:08:50 +01:00
|
|
|
strip = "symbols"
|
2022-05-22 20:17:15 +02:00
|
|
|
|
|
|
|
[profile.profiling]
|
|
|
|
inherits = "release"
|
|
|
|
debug = true
|
2022-05-22 20:28:25 +02:00
|
|
|
strip = "none"
|