Plugin formats — CLAP first, VST3 alongside, AU through a wrapper

As of November 2026

Formats and frameworks move. Re-check this page before decisions that depend on it.

Formats

FormatLicenceHostsFit for Rust
CLAPMIT, openBitwig, Reaper, FL Studio, Studio One, MultitrackStudio, many others; not Ableton Live or LogicExcellent: a plain C ABI, no C++ classes, threading rules written into the spec. Polyphonic modulation and per-note expression are first-class — valuable for instruments.
VST3MIT since SDK 3.8 (Oct 2025); GPLv3/proprietary dual licence beforeNearly every DAW on Windows/macOS/Linux except LogicGood via bindings. The licence change removes the old GPL problem — but check which bindings a framework uses (older vst3-sys is GPL; the newer vst3 crate is MIT).
AU v2 / AUv3AppleLogic Pro, GarageBand, (MainStage), iOS hostsNo mature native Rust path. Use the CLAP → AU wrapper (clap-wrapper).
LV2ISCLinux hosts (Ardour, Carla, Qtractor)Possible (lv2 crates) but little maintained; CLAP and VST3 already cover Linux.
VST2No new licences since 2018legacyDo not use.
Standalone—noneFree with nih-plug/nice-plug (JACK/ALSA/CoreAudio/WASAPI via cpal); handy for testing and for playing without a DAW.

Rust frameworks

FrameworkFormatsNotes
nih-plug (robbert-vdh)CLAP, VST3, standaloneThe de-facto standard; GUIs via egui, iced or vizia; cargo xtask bundle. Upstream is in maintenance mode and points to community forks.
nice-plug (Codeberg, community)CLAP, VST3, standaloneThe community continuation of nih-plug, same API style; uses the MIT vst3 bindings. Not used: see ADR-0001.
clack (prokopyl)CLAP (plugin and host)Safe, low-level CLAP bindings: CLAP’s interfaces with Rust lifetimes and thread-safety types. Chosen (ADR-0001); clack-host also gives us a test host.
CouplerCLAP, VST3A newer framework, designed cleanly; less mature. Watch.
clap-wrapper (free-audio, C++)wraps a CLAP into VST3, AUv2, standaloneBuild the CLAP in Rust, then wrap it for Logic (AUv2). The established route to AU for CLAP-first projects.

Answer: what to use

  1. CLAP first, written directly against CLAP with clack (ADR-0001, accepted). No framework between the plugin and the host; the plugin crate implements the CLAP extensions for parameters, state, ports, GUI and timer.
  2. VST3 and AU later through clap-wrapper, once Live, Cubase or Logic users matter.
  3. The DSP core stays free of CLAP types (ADR-0002).
  4. The GUI is egui, embedded in the host’s window through egui-baseview (ADR-0006).

Why not C for the core: no latency gain (latency is the host buffer plus the algorithm; Rust and C compile through LLVM to the same code), and Rust checks at compile time what crashes C plugins — CLAP’s thread rules, host-pointer lifetimes, audio↔GUI data races, parsing of state and model files.

Validation tools: clap-validator (CLAP), Steinberg’s validator (VST3), pluginval (VST3/AU).

Real-time rules for process

  • No heap allocation, no locks, no I/O, no logging that can block. Preallocate in initialize/reset (assert_no_alloc in debug builds).
  • The block size varies; never assume the maximum is the actual size.
  • The sample rate is known only at initialize; anything depending on it (filter coefficients, SSM discretisation, see Model pipeline) is recomputed there.
  • Flush denormals (FTZ/DAZ) on the audio thread; nih-plug/nice-plug do this.
  • Parameter changes are smoothed; GUI ↔ audio communication only through lock-free structures.
  • Recompute-class parameters (piano Sustain, A4, Tuning, Stretch, Temperament and Root) are block-accurate: a worker rebuilds the coefficients and the audio thread swaps them in at the start of the next block, ~10 ms after the change; automation ramps become steps of that size (T-016).

Piano parameter state

The piano writes sectioned state v4 with PARM records for stable u32 parameter ids and plain f32 values, plus MODL for the model identity. Unknown ids are skipped and missing ids reset to table defaults. Earlier v1–v3 state still loads. Presets and state use the same snapshot application path. T-019

The parameter table supplies CLAP metadata and editor controls. Stepped parameters expose labels to the host and use combo boxes in the editor. Host, editor and snapshot writes round to an integer index in range, which state and presets store as an f32. T-025, T-018