Discord names a speaker's SSRC in the Speaking op only the first time they speak, and the op arrives after their first UDP packets. songbird 0.6.1 dropped the DAVE packets it could not decrypt yet, so the first ~100 ms of the first thing each person said after a join were lost (live 2026-11-18: "자비스 서울 날씨 어때" arrived as "아비 서울날씨 어때", and the first call after the 01:20 start as "아비스"). songbird is vendored in app/vendor/songbird with one patch: packets of an unnamed SSRC are held (1 s, 50 packets each, 32 SSRCs) and processed in arrival order once it is named, and the Speaking event is sent before the SSRC is named so handlers know the speaker first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
377 lines
6.4 KiB
TOML
377 lines
6.4 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2021"
|
|
rust-version = "1.83.0"
|
|
name = "songbird"
|
|
version = "0.6.1"
|
|
authors = ["Kyle Simpson <kyleandrew.simpson@gmail.com>"]
|
|
build = "build.rs"
|
|
include = [
|
|
"src/**/*.rs",
|
|
"Cargo.toml",
|
|
"build.rs",
|
|
]
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "An async Rust library for the Discord voice API."
|
|
homepage = "https://github.com/serenity-rs/songbird"
|
|
documentation = "https://docs.rs/songbird"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"discord",
|
|
"api",
|
|
"rtp",
|
|
"audio",
|
|
]
|
|
license = "ISC"
|
|
repository = "https://github.com/serenity-rs/songbird.git"
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["full-doc"]
|
|
rustdoc-args = [
|
|
"--cfg",
|
|
"docsrs",
|
|
]
|
|
|
|
[features]
|
|
builtin-queue = []
|
|
default = [
|
|
"driver",
|
|
"gateway",
|
|
"rustls",
|
|
"serenity",
|
|
"tungstenite",
|
|
]
|
|
driver = [
|
|
"dep:aead",
|
|
"dep:aes-gcm",
|
|
"dep:async-trait",
|
|
"dep:opus2",
|
|
"dep:byteorder",
|
|
"dep:bytes",
|
|
"dep:chacha20poly1305",
|
|
"dep:crypto-common",
|
|
"dep:davey",
|
|
"dep:discortp",
|
|
"dep:flume",
|
|
"dep:nohash-hasher",
|
|
"dep:parking_lot",
|
|
"dep:rand",
|
|
"dep:reqwest",
|
|
"dep:ringbuf",
|
|
"dep:rubato",
|
|
"dep:rusty_pool",
|
|
"dep:serde-aux",
|
|
"dep:serenity-voice-model",
|
|
"dep:socket2",
|
|
"dep:stream_lib",
|
|
"dep:streamcatcher",
|
|
"dep:symphonia",
|
|
"dep:symphonia-core",
|
|
"dep:tokio",
|
|
"dep:tokio-util",
|
|
"dep:typenum",
|
|
"dep:url",
|
|
"dep:uuid",
|
|
"tokio?/fs",
|
|
"tokio?/io-util",
|
|
"tokio?/macros",
|
|
"tokio?/net",
|
|
"tokio?/process",
|
|
"tokio?/rt",
|
|
"tokio?/sync",
|
|
"tokio?/time",
|
|
]
|
|
full-doc = [
|
|
"default",
|
|
"tungstenite",
|
|
"twilight",
|
|
"builtin-queue",
|
|
"receive",
|
|
]
|
|
gateway = [
|
|
"dep:async-trait",
|
|
"dep:dashmap",
|
|
"dep:flume",
|
|
"dep:parking_lot",
|
|
"dep:tokio",
|
|
"tokio?/sync",
|
|
"tokio?/time",
|
|
]
|
|
internals = ["dep:byteorder"]
|
|
native = [
|
|
"reqwest?/native-tls",
|
|
"serenity?/native_tls_backend",
|
|
"stream_lib?/native-tls",
|
|
"tokio-tungstenite?/native-tls",
|
|
"tokio-websockets?/native-tls",
|
|
"twilight-gateway?/native-tls",
|
|
]
|
|
receive = [
|
|
"dep:bytes",
|
|
"discortp?/demux",
|
|
"discortp?/rtcp",
|
|
]
|
|
rustls = [
|
|
"reqwest?/rustls-tls",
|
|
"serenity?/rustls_backend",
|
|
"stream_lib?/rustls-tls",
|
|
"tokio-tungstenite?/rustls-tls-webpki-roots",
|
|
"tokio-websockets?/ring",
|
|
"tokio-websockets?/rustls-native-roots",
|
|
"twilight-gateway?/rustls-native-roots",
|
|
]
|
|
tungstenite = ["dep:tokio-tungstenite"]
|
|
twilight = [
|
|
"dep:twilight-gateway",
|
|
"dep:twilight-model",
|
|
]
|
|
tws = ["dep:tokio-websockets"]
|
|
|
|
[lib]
|
|
name = "songbird"
|
|
path = "src/lib.rs"
|
|
bench = false
|
|
|
|
[dependencies.aead]
|
|
version = "0.5.2"
|
|
optional = true
|
|
|
|
[dependencies.aes-gcm]
|
|
version = "0.10.3"
|
|
optional = true
|
|
|
|
[dependencies.async-trait]
|
|
version = "0.1"
|
|
optional = true
|
|
|
|
[dependencies.byteorder]
|
|
version = "1"
|
|
optional = true
|
|
|
|
[dependencies.bytes]
|
|
version = "1"
|
|
optional = true
|
|
|
|
[dependencies.chacha20poly1305]
|
|
version = "0.10.1"
|
|
optional = true
|
|
|
|
[dependencies.crypto-common]
|
|
version = "0.1"
|
|
features = ["std"]
|
|
optional = true
|
|
|
|
[dependencies.dashmap]
|
|
version = "6.1.0"
|
|
optional = true
|
|
|
|
[dependencies.davey]
|
|
version = "0.1.2"
|
|
optional = true
|
|
|
|
[dependencies.derivative]
|
|
version = "2"
|
|
|
|
[dependencies.discortp]
|
|
version = "0.6"
|
|
features = [
|
|
"discord",
|
|
"pnet",
|
|
"rtp",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.either]
|
|
version = "1.9.0"
|
|
|
|
[dependencies.enum-map]
|
|
version = "2.7.3"
|
|
|
|
[dependencies.flume]
|
|
version = "0.11"
|
|
optional = true
|
|
|
|
[dependencies.futures]
|
|
version = "0.3"
|
|
|
|
[dependencies.nohash-hasher]
|
|
version = "0.2.0"
|
|
optional = true
|
|
|
|
[dependencies.nonmax]
|
|
version = "0.5.5"
|
|
|
|
[dependencies.opus2]
|
|
version = "0.4.0"
|
|
optional = true
|
|
|
|
[dependencies.parking_lot]
|
|
version = "0.12"
|
|
optional = true
|
|
|
|
[dependencies.pin-project]
|
|
version = "1"
|
|
|
|
[dependencies.rand]
|
|
version = "0.9"
|
|
optional = true
|
|
|
|
[dependencies.reqwest]
|
|
version = "0.12.2"
|
|
features = ["stream"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.ringbuf]
|
|
version = "0.4"
|
|
optional = true
|
|
|
|
[dependencies.rubato]
|
|
version = "0.16"
|
|
optional = true
|
|
|
|
[dependencies.rusty_pool]
|
|
version = "0.7"
|
|
optional = true
|
|
|
|
[dependencies.serde]
|
|
version = "1"
|
|
features = ["derive"]
|
|
|
|
[dependencies.serde-aux]
|
|
version = "4"
|
|
optional = true
|
|
|
|
[dependencies.serde_json]
|
|
version = "1"
|
|
|
|
[dependencies.serenity]
|
|
version = "0.12.0"
|
|
features = [
|
|
"voice",
|
|
"gateway",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.serenity-voice-model]
|
|
version = "0.3"
|
|
optional = true
|
|
|
|
[dependencies.socket2]
|
|
version = "0.5"
|
|
optional = true
|
|
|
|
[dependencies.stream_lib]
|
|
version = "0.5.2"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.streamcatcher]
|
|
version = "1"
|
|
optional = true
|
|
|
|
[dependencies.symphonia]
|
|
version = "0.5.2"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.symphonia-core]
|
|
version = "0.5.2"
|
|
optional = true
|
|
|
|
[dependencies.tokio]
|
|
version = "1.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.tokio-tungstenite]
|
|
version = "0.26"
|
|
features = ["url"]
|
|
optional = true
|
|
|
|
[dependencies.tokio-util]
|
|
version = "0.7"
|
|
features = ["io"]
|
|
optional = true
|
|
|
|
[dependencies.tokio-websockets]
|
|
version = "0.11"
|
|
features = [
|
|
"client",
|
|
"fastrand",
|
|
"sha1_smol",
|
|
"simd",
|
|
]
|
|
optional = true
|
|
|
|
[dependencies.tracing]
|
|
version = "0.1"
|
|
features = ["log"]
|
|
|
|
[dependencies.tracing-futures]
|
|
version = "0.2"
|
|
|
|
[dependencies.twilight-gateway]
|
|
version = ">= 0.16.0, <= 0.17"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.twilight-model]
|
|
version = ">= 0.16.0, <= 0.17"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.typenum]
|
|
version = "1.17.0"
|
|
optional = true
|
|
|
|
[dependencies.url]
|
|
version = "2"
|
|
optional = true
|
|
|
|
[dependencies.uuid]
|
|
version = "1"
|
|
features = ["v4"]
|
|
optional = true
|
|
|
|
[dev-dependencies.byteorder]
|
|
version = "1"
|
|
|
|
[dev-dependencies.criterion]
|
|
version = "0.5"
|
|
|
|
[dev-dependencies.ntest]
|
|
version = "0.9"
|
|
|
|
[dev-dependencies.symphonia]
|
|
version = "0.5.2"
|
|
features = [
|
|
"aac",
|
|
"isomp4",
|
|
"mp3",
|
|
]
|
|
|
|
[dev-dependencies.tokio]
|
|
version = "1"
|
|
features = [
|
|
"rt",
|
|
"rt-multi-thread",
|
|
"test-util",
|
|
]
|