-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed-hash: allow opting out rand
when std
enabled
#805
Comments
This was referenced Dec 1, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
at ibc-rs, we use
primitives_types::U256
for anAmount
type, but there's an issue for projects using ibc-rs, when integrating with CosmWasm and compiling withwasm32-unknown-unknown
target. We need there, to enable thestd
feature and avoid pulling inrand
orgetrandom
crates as CosmWasm VM doesn't allow them.Thus, when we enable
primitive_types/std
,fixed_hash/std
is brought in, andrand
is pulled in afterward. This causes compatibility issues with CosmWasm.Related issue at ibc-rs: cosmos/ibc-rs#991
Proposal
Adding an extra
rand
feature, so can excluderand
from thefixed_hash
crate when:This allows our users to stick with standard libraries without pulling in the
rand
while thefixed-hash
retains its default behavior.The text was updated successfully, but these errors were encountered: