Expand description
Dependency-free utilities shared across the truce workspace.
Two unrelated families of helpers live here so neither has to pull in a heavier crate’s transitive chain:
cast— numeric-cast helpers for the audio-plugin → host FFI boundary (MIDI byte encodes,usize↔u32length casts, hostf64↔ DSPf32, discrete-index ↔ normalized).slugify— ASCII-safe filesystem / IRI slug used by the LV2 staging path and runtime bundle-name derivation.
truce-core re-exports the cast module and slugify for
backwards compatibility with workspace call sites that already
import truce_core::cast::* and truce_core::slugify. Crates that
want to avoid truce-core’s truce-params chain (notably
cargo-truce) depend on truce-utils directly.
Modules§
- cast
- Numeric-cast helpers for the audio-plugin → host FFI boundary.
Functions§
- slugify
- Slug a plugin’s display name into a lowercase, hyphenated, ASCII-safe identifier suitable for filesystem paths, LV2 bundle names, and IRI components.