Skip to content
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

Support compiling to WASM #2

Closed
jsdw opened this issue May 20, 2022 · 1 comment · Fixed by #24
Closed

Support compiling to WASM #2

jsdw opened this issue May 20, 2022 · 1 comment · Fixed by #24

Comments

@jsdw
Copy link
Collaborator

jsdw commented May 20, 2022

I suspect this is already possible, but let's make sure, and let's add a CI step to ensure that wasm builds don't break going forwards.

@gilescope
Copy link

cargo build --target wasm32-unknown-unknown seems to suggest it's not quite:

   Compiling scale-value v0.1.0 (/home/gilescope/git/scale-value)
error[E0599]: the function or associated item `decode` exists for struct `BitVec<u64>`, but its trait bounds were not satisfied
   --> src/scale_impls/decode.rs:300:79
    |
300 |         (BitOrderTy::U64, BitStoreTy::Lsb0) => to_bit_sequence(BitVec::<u64, Lsb0>::decode(data)?),
    |                                                                                     ^^^^^^ function or associated item cannot be called on `BitVec<u64>` due to unsatisfied trait bounds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants