Cargo Features

[dependencies]
twox-hash = { version = "2.0.1", default-features = false, features = ["std", "alloc", "random", "serialize", "xxhash32", "xxhash64", "xxhash3_64"] }

END-[workspace]

default = random, std, xxhash32, xxhash3_64, xxhash64

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

std default = alloc
alloc std
random default

Enables rand

serialize

Enables serde

xxhash32 default

Affects twox-hash::xxhash32

xxhash64 default

Affects twox-hash::xxhash64

xxhash3_64 default

Affects twox-hash::xxhash3_64