Cargo Features

[dependencies]
redactedsecret = { version = "0.4.1", default-features = false, features = ["alloc", "bytes", "serde"] }
default = alloc

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

alloc default

Enables alloc of zeroize

Affects boxed::SecretBox, vec::SecretVec

bytes = bytes_crate

Enables bytes of zeroize

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.

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

Affects redactedsecret::SerializableSecret

bytes_crate bytes?

Enables bytes ^0.4