Open satyarohith opened 3 years ago
Can you try disabling the std
feature?
Your code example compiles with:
[dependencies]
twox-hash = { version = "1.6.1", default-features = false }
% cargo tree
example v0.1.0 (/private/tmp/example)
└── twox-hash v1.6.1
├── cfg-if v1.0.0
└── static_assertions v1.1.0
Please correct me if my assumption is wrong. The
rand
crate is used forRandomXxHashBuilder64
and friends but is probably not required when using the std builder.The below code also pulls in
rand
as a dependency. It would be nice to have something like thefeatures = ["xxhash64"]
option to avoid pullingrand
.