cosmwasm icon indicating copy to clipboard operation
cosmwasm copied to clipboard

Compiling Wasmer (depended by cosmwasm-vm) Fails

Open loloicci opened this issue 2 years ago • 0 comments

$ cargo check
    Checking wasmer v2.0.0
error[E0277]: the trait bound `u64: From<usize>` is not satisfied
   --> /xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/wasmer-2.0.0/src/externals/memory.rs:134:28
    |
134 |         def.current_length.into()
    |                            ^^^^ the trait `From<usize>` is not implemented for `u64`                            
    |
    = help: the following implementations were found:
              <u64 as From<&'a rend::BigEndian<u64>>>
              <u64 as From<&'a rend::LittleEndian<u64>>>
              <u64 as From<&'a rend::NativeEndian<u64>>>
              <u64 as From<NonZeroU64>>
            and 8 others
    = note: required because of the requirements on the impl of `Into<u64>` for `usize`   

see also: https://github.com/wasmerio/wasmer/issues/2749

loloicci avatar Mar 23 '22 09:03 loloicci