Cargo Features

[dependencies]
redact = { version = "0.1.10", default-features = false, features = ["std", "fake", "serde", "zeroize"] }
default = std

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

std default

impl std::error::Error for Secret<E> where E: Error

fake

Enables fake ^2.5 and rand

serde

Enables serde

Affects redact::serde, serde::expose_secret, serde::redact_secret

zeroize

Enables zeroize