Cargo Features

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

Core features

gateway default

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

Affects config::Config.gateway_timeout, error::JoinError, error::JoinResult, skua-voice::join, skua-voice::shards

driver default

Enables tokio-tungstenite ^0.20, 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, skua-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, skua-voice::driver, skua-voice::events, skua-voice::input, skua-voice::tracks, config::Config.decode_mode

rustls default

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

skua:

Backends to pick from:
- Rustls Backends

native

Enables native_tls_backend of optional skua, native-tls of optional tokio-tungstenite ^0.20, 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.

skua default

Affects skua-voice::skua, shards::SkuaSharder, shards::SkuaShardHandle

simd-json implicit feature

Enables simd-json ^0.13

simd-json:

High performance JSON parser based on a port of simdjson