Cargo Features

sodiumoxide = { version = "0.2.7", default-features = false, features = ["std", "use-pkg-config", "benchmarks", "serde"] }
default = serde, std

These default features are set whenever sodiumoxide is added without default-features = false somewhere in the dependency tree.

std default

Enables use-pkg-config of libsodium-sys


Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde default