Cargo Features
[dependencies]
twox-hash = { version = "2.1.2", 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-hashis added withoutsomewhere in the dependency tree.default-features = false - std default = alloc
-
Affects
large::neon,large::avx2,large::sse2… - alloc std
-
Affects
streaming::with_alloc… - 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,secret::Secret64BitView… - xxhash3_128 default
-
Affects
twox-hash::xxhash3_128,secret::Secret128BitView,xxhash3::pairs_of_u64_bytes…