Cargo Features

[dependencies]
subtle-encoding = { version = "0.5.1", default-features = false, features = ["std", "alloc", "base64", "bech32-preview", "hex"] }
default = base64, hex, std

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

std default = alloc, zeroize

Affects encoding::Encoding.encode_to_writer, encoding::Encoding.encode_to_file, encoding::Encoding.encode_to_file, encoding::Encoding.decode_from_str, encoding::Encoding.decode_from_reader, encoding::Encoding.decode_from_file

alloc bech32-preview? std

Affects base64::encode, base64::decode, encoding::Encoding.encode, encoding::Encoding.encode_to_string, encoding::Encoding.decode, hex::encode, hex::decode, hex::encode_upper, hex::decode_upper

base64 default = zeroize

Affects subtle-encoding::base64

bech32-preview = alloc, zeroize

Affects subtle-encoding::bech32

hex default

Affects subtle-encoding::hex

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](https://rust-lang.github.io/rfcs/3491-remove-implicit-features.html).

zeroize base64 bech32-preview? std