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

use scale-bits for BitSequence decoding etc and enable WASM test #24

Merged
merged 3 commits into from Sep 21, 2022

Conversation

jsdw
Copy link
Collaborator

@jsdw jsdw commented Sep 20, 2022

We've consolidated bit sequence handling into the scale-bits crate, so lean on that and remove encode/decode logic from here.

Also add a CI check that we can compile the crate to WASM.

And for the sake of expediency I've also prepped for the next release.

Closes #2

@jsdw jsdw requested a review from lexnv September 20, 2022 13:26
uses: actions-rs/cargo@v1.0.3
with:
command: check
args: --all-targets --all-features --target wasm32-unknown-unknown
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks funny but --all-targets actually imply that is compiles for test and bench I guess?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that's my understanding of it! It's not really important to have here but I thought we may as well try and push for everything to compile to wasm when possible.. shrug :)

Copy link
Contributor

@lexnv lexnv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@jsdw jsdw merged commit 4cd2d62 into main Sep 21, 2022
@jsdw jsdw deleted the jsdw-scale-bits branch September 21, 2022 10:11
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 this pull request may close these issues.

Support compiling to WASM
3 participants