Goal: Super lightweight, pure Rust, works on Linux and macOS, 10-20x lighter than official 【entity-Logic¦canonical_name=Logic】 Pro
【entity-Logic¦canonical_name=Logic】 Pro: 1.2GB app + 70GB library, Objective-C++ with 30 years of legacy, CoreData, NSKeyedArchiver, loads everything on startup, 1.5GB RAM idle, 3-4s cold start, macOS only.
ProWave:
- Binary: <50MB single binary (Rust release + LTO + strip + mimalloc)
- RAM idle: <150MB with 0 tracks (vs 1.5GB 【entity-Logic¦canonical_name=Logic】)
- Cold start: <400ms (vs 3-4s) — lazy loading, no ObjC runtime, rkyv zero-copy
- Library: <100MB essentials (IRs, wavetables), not 70GB. Optional: read from
/Library/Application Support/Logic/if user has 【entity-Logic¦canonical_name=Logic】 installed - Engine: Same
prowave-enginecore for native and WASM, no duplication
cpalcrate with backends: ALSA (default), JACK (pro), PipeWire (via ALSA/JACK compat)- Do not use CoreAudio, do not use AU. Only CLAP (primary, open, Rust-friendly) and VST3 via
vst3-sys - Latency: ALSA 128 samples @ 48kHz = ~8ms RTL, JACK <8ms
- Permissions: no root, Flatpak with
--socket=pulseaudio --filesystem=xdg-Music:rw
libasound2,libjack,vulkan(via wgpu)- No need for
libcoreaudio,AudioToolbox - Build:
cargo build --release --target x86_64-unknown-linux-gnu,cargo build --target aarch64-unknown-linux-gnufor ARM Linux
winit+wgpuwith Vulkan (Linux) — not Metalegui— immediate mode, works the same on Linux and macOS- No Finder bundle magic:
.logicxis just a directory on Linux,std::fs::read_dir
cargo test --workspace -- --nocaptureon Ubuntu 22.04 + Fedoracargo xtask checkruns clippy, fmt, miri (for unsafe blocks)
cpalwith CoreAudio backend- AU support via
coreaudio-sys+rust-au(orcoreaudio-rs). Only on macOS, with feature flag#[cfg(target_os = "macos")] - Aggregate devices (like Logic)
- Metal via wgpu (wgpu automatically selects Metal on macOS)
.logicxis a package (directory with extension that Finder shows as a file)- Detect via
is_dir && contains Alternatives/ProjectData - No need for
xattr, but to save a .logicx that Finder shows as a package, creating a dir with the.logicxextension is enough. Optional: setcom.apple.FinderInfopackage bit viaxattr
- Hardened Runtime: entitlements
com.apple.security.device.audio-input,com.apple.security.files.user-selected.read-write - AU hosting requires
com.apple.security.cs.allow-unsigned-executable-memoryONLY in the sandboxed process, NOT in main - Notarization:
cargo xtask bundle --release+codesign+notarytool
cargo build --target x86_64-apple-darwin --target aarch64-apple-darwinlipo -create -output ProWaveStudio target/x86_64.../prowave target/aarch64.../prowave
- Allocator:
mimalloc(orrpmalloc) — 10-20% faster than system malloc, less fragmentation - LTO + Strip:
Cargo.toml:lto = true,strip = true,codegen-units = 1 - Lazy Loading: Don't load all plugins on startup. Only scan ProjectData (linear scan), instantiate channel strip when track is selected
- Disk Streaming: Audio files via
memmap2+ prefetch thread, don't load everything into RAM - Zero-copy:
rkyvforproject.json, notserde_jsonwhich allocates - No GC: Rust has no GC, no pauses
- SIMD:
wide+std::simdfor DSP, 4x faster than scalar
[profile.release]
lto = true
codegen-units = 1
strip = true
panic = "abort"
opt-level = 3
[dependencies]
mimalloc = { version = "0.1", default-features = false }
### Main.rs
```rust
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
fn main() {
// <400ms startup: only init logger + parse args + create window
// Defer loading project until after window shown
}# crates/prowave-engine/Cargo.toml
[features]
default = []
macos-au = ["coreaudio-sys", "rust-au"] # only on macos
linux-jack = ["jack"] # only on linux
# Conditional compilation
#[cfg(target_os = "macos")]
mod au_host;
#[cfg(target_os = "linux")]
mod alsa_host;cargo xtask bench builds the release app, runs prowave --bench <file> and checks:
- release binary under 50 MB
- start to first frame under 400 ms
- memory with an empty project, idle, under 150 MB
- 24 software-instrument tracks at 48 kHz rendered by the engine in under 15 % of one CPU core, and memory under 300 MB
CI runs it on macOS and Windows on every push (.github/workflows/ci.yml, job bench). On
Windows the first run (2026-10-20, 4K display) gave 12.6 MB, 314 ms, 125 MB, 3.6 % and 125 MB.
What made the difference was the graphics API: OpenGL alone instead of starting Vulkan,
DirectX 12 and OpenGL together (crates/prowave-app/src/graphics.rs).
prowave --layout-shots <folder> saves pictures of the window at 1920x1080, 1470x920 (13-inch
MacBook Air), 1280x800 and 1024x700, to check that nothing overlaps on small screens.
- Compare with Logic Pro: same 24-track project in Logic = 1.2GB RAM, ProWave = 300MB
For Claude: Start with prowave-engine cross-platform (cpal + wgpu), then prowave-logicx-import with separate macos and linux features. Use #[cfg] for platform-specific code.