Open
Description
Does rust near api support wasm. I was trying to add it to leptos (rust frontend framework). It gives following error:
error[E0308]: mismatched types
--> /home/amiya/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/near-primitives-0.28.0/src/rand.rs:71:50
|
71 | let uniform_index = usize::from_le_bytes(usize_seed) % self.aliases.len();
| -------------------- ^^^^^^^^^^ expected an array with a size of 4, found one with a size of 8
| |
| arguments to this function are incorrect
|
note: associated function defined here
--> /home/amiya/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/num/mod.rs:1194:5
|
1194 | / uint_impl! {
1195 | | Self = usize,
1196 | | ActualT = u32,
1197 | | SignedT = isize,
... |
1211 | | bound_condition = " on 32-bit targets",
1212 | | }
| |_____^
= note: this error originates in the macro `uint_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0308`.
error: could not compile `near-primitives` (lib) due to 1 previous error