truce-utils 0.36.2

Lightweight, dependency-free utilities shared across the truce workspace (numeric-cast helpers, slug)
Documentation

Dependency-free utilities shared across the truce workspace.

  • [cast] — numeric-cast helpers for the audio-plugin → host FFI boundary (usizeu32 length casts, host f64 ↔ DSP f32, discrete-index ↔ normalized).
  • [midi] — MIDI value-domain normalize / denormalize between wire-native integers and f32 ranges, plus the spec's MIDI 1.0 ↔ MIDI 2.0 bit-replication bridges.
  • [shell_sidecar] — sidecar-file path resolution shared by cargo-truce (writes the sidecar at install-time) and the truce::plugin! macro (reads it at runtime to locate the logic dylib for hot-reload).
  • [slugify] — ASCII-safe filesystem / IRI slug used by the LV2 staging path and runtime bundle-name derivation.

truce-core re-exports the modules above so consumers that pull truce-core don't need a second dependency. Crates that want to avoid truce-core's truce-params chain (notably cargo-truce) depend on truce-utils directly.