Lavalink-rs
A lavalink
and andesite
API wrapping library for every tokio
discord crate.
Links to download stuff you will need
- Lavalink repository
- Andesite Repository
- Java download (11 or newer, 15 recommended, OpenJ9 works)
TODO
- Support multiple connections per region.
- Support nodes.
- Support actual nodes.
- Support identifiers.
- Support pause, resume, skip to time.
- Support starting at specific times and configurable replace current stream.
- Support equalization.
- Support both rustls and native_tls backends as features.
- Support twilight.
- Support events.
- Support raw events.
- Implement my own event hander for voice connections.
- Support easy queues natively.
- Optimize the codebase.
- Remove all the clones from examples.
- Improve error handling.
- Add tracing and logging.
- Add documentation.
How to use
Install the version from crates.io:
= { = "0.5", = ["rustls"] }
# or
[]
= "0.5"
= ["rustls"]
Or the development release:
= { = "https://gitlab.com/nitsuga5124/lavalink-rs/", = "master" }
# or
[]
= "https://gitlab.com/nitsuga5124/lavalink-rs/"
= "master"
If you wish to use a development version of serenity, add the following to the Cargo.toml:
[]
= "https://github.com/serenity-rs/serenity"
= "next"
Features
No default features are set, so you will need to specify them yourself. These are the available ones:
rustls
: Use the rustls TLS backend.native
: Uses the system native TLS backend (OpenSSL on linux).rustls-tokio-02
: rustls, but uses tokio 0.2 instead of 1.xnative-tokio-02
: native, but uses tokio 0.2 instead of 1.x