Cargo Features
[dependencies]
twox-hash = { version = "2.1.0", default-features = false, features = ["std", "alloc", "random", "serialize", "xxhash32", "xxhash64", "xxhash3_64", "xxhash3_128"] }
END-[workspace]
- default = random, std, xxhash32, xxhash3_128, xxhash3_64, xxhash64
-
These default features are set whenever
twox-hash
is added without
somewhere in the dependency tree.default-features = false - std default = alloc
- alloc std
-
Affects
streaming::with_alloc
… - random default
-
Enables rand ^0.8.0
- serialize
-
Enables serde
- xxhash32 default
-
Affects
twox-hash::xxhash32
… - xxhash64 default
-
Affects
twox-hash::xxhash64
… - xxhash3_64 default
-
Affects
twox-hash::xxhash3_64
,secret::Secret64BitView
… - xxhash3_128 default
-
Affects
twox-hash::xxhash3_128
,secret::Secret128BitView
,xxhash3::pairs_of_u64_bytes
…