Cargo Features

secrecy = { version = "0.8.0", default-features = false, features = ["alloc", "bytes", "serde"] }
default = alloc

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

alloc default

Enables alloc of zeroize

Features from optional dependencies

bytes implicit feature

Enables bytes

optional dependencies

serde implicit feature

Enables serde


A generic serialization/deserialization framework

Affects secrecy::SerializableSecret