[GH-ISSUE #7759] Add an Opus codec crate to Cargo.lock so native mods can implement Simple Voice Chat #3360

Open
opened 2026-11-03 04:07:47 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Josua201264 on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7759

Add an Opus codec crate to Cargo.lock so native mods can implement Simple Voice Chat

Hi,

I'm building a native mod (a mixin bundle with a crate) that lets the Horizon client talk to players on Java servers running the Simple Voice Chat plugin. My test target is a Paper 26.2 server with the plugin (Bukkit build 2.6.23).

Problem
Simple Voice Chat puts Opus audio on the wire, so a compatible client has to encode and decode Opus. According to docs/native-mods.md, a mod crate may only depend on crates that are already in Cargo.lock; anything else fails with E_CRATE_DEPENDENCY.

The lock already has what the rest of the mod needs (cpal 0.16, ring 0.17, uuid, log), but no Opus implementation. symphonia is in the lock with the Vorbis and Ogg codecs only.

Request
Please add one Opus crate to Cargo.lock, for example a libopus binding such as opus or audiopus, or a pure-Rust Opus codec if you would rather avoid another C build. The game itself does not have to use it; being in the lock is enough for mods.

Trade-off
libopus bindings need a C build (CMake or a system libopus). I don't know what your Windows, Linux and macOS build setup allows, so which crate fits is your call.

I'm happy to test a branch and report back. Thanks!

Originally created by @Josua201264 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7759 Add an Opus codec crate to Cargo.lock so native mods can implement Simple Voice Chat Hi, I'm building a native mod (a mixin bundle with a [[crate]]) that lets the Horizon client talk to players on Java servers running the Simple Voice Chat plugin. My test target is a Paper 26.2 server with the plugin (Bukkit build 2.6.23). Problem Simple Voice Chat puts Opus audio on the wire, so a compatible client has to encode and decode Opus. According to docs/native-mods.md, a mod crate may only depend on crates that are already in Cargo.lock; anything else fails with E_CRATE_DEPENDENCY. The lock already has what the rest of the mod needs (cpal 0.16, ring 0.17, uuid, log), but no Opus implementation. symphonia is in the lock with the Vorbis and Ogg codecs only. Request Please add one Opus crate to Cargo.lock, for example a libopus binding such as `opus` or `audiopus`, or a pure-Rust Opus codec if you would rather avoid another C build. The game itself does not have to use it; being in the lock is enough for mods. Trade-off libopus bindings need a C build (CMake or a system libopus). I don't know what your Windows, Linux and macOS build setup allows, so which crate fits is your call. I'm happy to test a branch and report back. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3360
No description provided.