You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at ibc-rs, we use primitives_types::U256 for an Amount type, but there's an issue for projects using ibc-rs, when integrating with CosmWasm and compiling with wasm32-unknown-unknown target. We need there, to enable the std feature and avoid pulling in rand or getrandom crates as CosmWasm VM doesn't allow them.
Thus, when we enable primitive_types/std, fixed_hash/std is brought in, and rand is pulled in afterward. This causes compatibility issues with CosmWasm.
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: