Skip to content

Feature flags ​

The open-stomp crate's Cargo features: what each one adds, what it pulls in, and how to turn them off. All three are on by default.

The features ​

FeatureDefaultAddsPulls in
deviceOnopen_stomp::device: the connection engine (port scan, auto-connect, startup sync, request pacing, edits, uploads, capture replay)midir (ALSA on Linux, CoreMIDI on macOS, WinMM on Windows); core-foundation-sys on macOS
bleOnBluetooth LE MIDI: the engine also finds and connects to the pedal wirelessly (Bluetooth). Turns on devicebtleplug (CoreBluetooth, BlueZ, WinRT), tokio, futures-util, uuid
namOnopen_stomp::nam: load, run and convert .nam models; ir::convert_optimised and ir::Method::Optimised; Device::import_nam_file*serde_json, rustfft

Without any of them you get the protocol layer alone: parsing, building and state tracking, with no I/O and no dependencies.

Choosing features ​

toml
[dependencies]
open-stomp = { git = "https://github.com/JackMechem/open-stomp-lib", tag = "v0.7.0" }
toml
[dependencies]
open-stomp = { git = "https://github.com/JackMechem/open-stomp-lib", tag = "v0.7.0", default-features = false }
toml
[dependencies]
open-stomp = { git = "https://github.com/JackMechem/open-stomp-lib", tag = "v0.7.0", default-features = false, features = ["device", "nam"] }
toml
[dependencies]
open-stomp = { git = "https://github.com/JackMechem/open-stomp-lib", tag = "v0.7.0", default-features = false, features = ["nam"] }

What each build has ​

No featuresnamdevicedevice + ble
pack, midi, catalog, records, state, queue, upload, capture, blemidiYesYesYesYes
ir (WAV, resampling, the official conversion)YesYesYesYes
ir::convert_optimisedYes
namYes
device::DeviceYesYes
Device::import_nam_file*With namWith nam
Device::import_ir_file defaultOfficial conversion (optimised with nam)Same
Bluetooth pedalYes
  • Config::bluetooth exists with or without ble, but is ignored without it.
  • Device::import_ir_file uses the optimised conversion when nam is on, and the official one otherwise.

System requirements ​

FeatureLinuxmacOS, Windows
deviceALSA headers: libasound2-dev (Debian/Ubuntu), alsa-lib-devel (Fedora)Nothing
bleD-Bus headers: libdbus-1-dev / dbus-devel; BlueZ at run timeNothing (macOS asks for Bluetooth permission on first use)
namNothingNothing

Rust 1.88 or newer for all of them.

Examples and features ​

Some examples need a feature:

ExampleNeeds
monitor, portsdevice
ble_checkble
nam_convert, nam_check, nam_optimise, nam_render, nam_level, ir_comparenam
decode, ir_check, ir_capture_check, ir_test_filesNothing

Python ​

The Python package is built with every feature: the engine, Bluetooth and NAM conversion are always there. On Linux, building it from source needs both the ALSA and D-Bus headers.

API docs ​

The Rust API reference is built with all features on. Locally, cargo doc --open builds it with the features you have enabled.

MIT or Apache-2.0. Not affiliated with SORAN.