Cargo Features
[dependencies]
redactedsecret = { version = "0.4.1", default-features = false, features = ["alloc", "bytes", "serde"] }
- default = alloc
-
The
alloc
feature is set by default wheneverredactedsecret
is added without
somewhere in the dependency tree.default-features = false - alloc default
-
Affects
boxed::SecretBox
,vec::SecretVec
… - bytes = bytes_crate
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