Cargo Features

[dependencies]
songbird = { version = "0.4.1", default-features = false, features = ["gateway", "driver", "rustls", "native", "twilight", "builtin-queue", "receive", "full-doc", "internals", "serenity", "simd-json"] }
default full-doc? = driver, gateway, rustls, serenity

Core features

gateway default

Enables async-trait, dashmap, flume, once_cell, and parking_lot, sync and time of tokio

Affects config::Config.gateway_timeout, error::JoinError, error::JoinResult, songbird::join, songbird::shards

driver default

Enables tokio-tungstenite, tokio-util, typemap_rev, url, and uuid, async-trait, audiopus, byteorder, crypto_secretbox, discortp, flume, nohash-hasher, once_cell, parking_lot, rand, reqwest ^0.11, ringbuf ^0.3, rubato ^0.14.1, rusty_pool, serde-aux, serenity-voice-model, socket2, streamcatcher, symphonia, and symphonia-core, fs, io-util, macros, net, process, rt, sync and time of tokio

Affects config::Config.crypto_mode, config::Config.mix_mode, config::Config.preallocated_tracks, config::Config.driver_retry, config::Config.use_softclip, config::Config.driver_timeout, config::Config.codec_registry, config::Config.format_registry, config::Config.disposer, config::Config.scheduler, constants::VOICE_GATEWAY_VERSION, constants::SAMPLE_RATE, constants::DEFAULT_BITRATE, constants::RTP_PROFILE_TYPE, join::Join, songbird::driver, songbird::events, songbird::input, songbird::tracks, config::Config.decode_mode

rustls default

Enables rustls-tls of optional reqwest ^0.11, rustls-tls-webpki-roots of optional tokio-tungstenite, rustls-native-roots of optional twilight-gateway and rustls_backend of optional serenity

serenity:

Backends to pick from:
- Rustls Backends

native

Enables native_tls_backend of optional serenity, native-tls of optional tokio-tungstenite, native of optional twilight-gateway and native-tls of optional reqwest ^0.11

reqwest:

Enables native-tls specific functionality not available by default.

twilight full-doc?

Enables twilight-gateway and twilight-model

Affects shards::TwilightMap

builtin-queue full-doc?

Behaviour altering features.

receive full-doc?

Enables bytes, demux and rtcp of optional discortp

Affects mixer::MixerConnection.udp_rx, test_impls::Listeners, config::Config.decode_mode, config::Config.decode_state_timeout, config::Config.playout_buffer_length, config::Config.playout_spike_length

full-doc = builtin-queue, default, receive, twilight

Used for docgen/testing/benchmarking.

internals

Enables byteorder

Affects driver::bench_internals

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

serenity default

Affects songbird::serenity, shards::SerenitySharder, shards::SerenityShardHandle

simd-json implicit feature

Enables simd-json

simd-json:

High performance JSON parser based on a port of simdjson