Cargo Features

[dependencies]
hex = { version = "0.4.3", default-features = false, features = ["std", "alloc", "serde"] }
default = std

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

std default = alloc
alloc std

Affects hex::encode, hex::encode_upper, hex::decode, serde::serialize_upper, serde::serialize

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework

Affects hex::serde