Skip to content

fix(llm): update code for symphonia 0.6 and bech32 0.11 breaking API changes#4479

Merged
bug-ops merged 1 commit into
mainfrom
fix/deps-breaking-api-symphonia-bech32
May 19, 2026
Merged

fix(llm): update code for symphonia 0.6 and bech32 0.11 breaking API changes#4479
bug-ops merged 1 commit into
mainfrom
fix/deps-breaking-api-symphonia-bech32

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented May 19, 2026

Summary

Fixes compilation breakage introduced by the dependency bumps in #4478.

symphonia 0.5.5 → 0.6.0 (crates/zeph-llm/src/candle_whisper.rs):

  • Probe::format() renamed to Probe::probe(), now returns Box<dyn FormatReader> directly instead of ProbeResult
  • Hint moved from core::probe to core::formats::probe
  • CodecRegistry::make() renamed to make_audio_decoder(), takes &AudioCodecParameters
  • track.codec_params is now Option<CodecParameters> enum — requires CodecParameters::Audio(p) match
  • FormatReader::default_track() now requires a TrackType argument
  • SampleBuffer removed — use copy_to_slice_interleaved on GenericAudioBufferRef
  • FormatReader::next_packet() now returns Result<Option<Packet>>
  • packet.track_id() is now a public field packet.track_id

bech32 0.9.1 → 0.11.1 (crates/zeph-llm/src/gonka/signer.rs):

  • ToBase32 trait removed — encode now handles base32 conversion internally
  • bech32::Variant::Bech32 removed — use encode::<Bech32>(hrp, bytes) with Hrp::parse

Test plan

  • cargo build --features full — clean
  • cargo build --features full --release — clean
  • cargo +nightly fmt --check — clean
  • cargo clippy --features full -- -D warnings — clean
  • cargo nextest run --workspace --lib --bins — 10037 passed, 21 skipped

…changes

symphonia 0.6:
- Probe::format() renamed to Probe::probe(), now returns Box<dyn FormatReader> directly
- Hint moved from core::probe to core::formats::probe
- get_codecs().make() renamed to make_audio_decoder() taking AudioCodecParameters
- codec_params is now Option<CodecParameters> enum requiring pattern match
- default_track() now requires TrackType argument
- SampleBuffer removed; use copy_to_slice_interleaved on GenericAudioBufferRef
- next_packet() now returns Result<Option<Packet>>
- track_id is a public field, not a method

bech32 0.11:
- ToBase32 trait removed; encode takes raw bytes internally
- Variant::Bech32 removed; use encode::<Bech32>(hrp, bytes) with Hrp::parse
@github-actions github-actions Bot added llm zeph-llm crate (Ollama, Claude) rust Rust code changes bug Something isn't working size/M Medium PR (51-200 lines) labels May 19, 2026
@bug-ops bug-ops enabled auto-merge (squash) May 19, 2026 13:25
@bug-ops bug-ops merged commit c8dcc4b into main May 19, 2026
32 checks passed
@bug-ops bug-ops deleted the fix/deps-breaking-api-symphonia-bech32 branch May 19, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working llm zeph-llm crate (Ollama, Claude) rust Rust code changes size/M Medium PR (51-200 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant