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
somewhere in the dependency tree.default-features = false - 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
…