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

Add WASM support #7

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Add WASM support #7

wants to merge 4 commits into from

Conversation

tmthecoder
Copy link
Owner

WIP: Rust currently doesn't allow for target-specific crate-type settings in the Cargo.toml, so this PR is halted until a CLI or config option becomes available.

Add support to deploy this crate as a WASM library.

All existing implementations seem to work fine with the #[wasm_bindgen] annotation with the exception of the parse_otpauth_uri as wasm_bindgen doesn't support non-C-style enums.

I've currently added a WASM-only workaround.

Functionality is still untested.

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.

1 participant