Cargo Features

[dependencies]
discord = { version = "0.8.1", default-features = false, features = ["voice"] }
default = voice

The voice feature is set by default whenever discord is added without default-features = false somewhere in the dependency tree.

voice default = opus, sodiumoxide

Affects discord::voice

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.

opus voice

Enables opus ^0.2

sodiumoxide voice

Enables sodiumoxide ^0.0.12