Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

wasm #3

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

wasm #3

wants to merge 7 commits into from

Conversation

luizirber
Copy link
Owner

@luizirber luizirber commented Jul 16, 2018

Use wasm-bindgen to annotate structs and methods for JS, and generate a webassembly NPM package using wasm-pack

Issues/weirdness:

  • wasm-pack doesn't support conditional include/features in Cargo.toml and fails if wasm-bindgen is not explicitly added as a dependency.
  • I ended up re-declaring the KmerMinHash struct depending on the target platform... There is probably a better way, but don't know how to do it. For now the cfg_if trick worked.

Additional notes

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

Successfully merging this pull request may close these issues.

1 participant