-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WASM compatibility #131
Comments
I've got some WASM support in the pqcrypto crates since PR rustpq/pqcrypto#26. I have no idea how WASM works though, so I would appreciate it if those that would like to see it open a PR and propose some suggestions for testing it in CI (so I don't break it accidentally). |
Plus one on this |
So far, got liboqs rust to build with Here is where problems begin - and they are first compile problems. When I build with target=wasm32-unknown-unknown (even using nightly and
with the suggestion
In addition, there are also errors like
which involve library crates - code I cannot edit, so I imagine there is configuration that can help. With |
According to lib.rs in libc it seems c_int and friends are defined for emscripten only, but c_char is not defined (and appears to default to i8 instead of u8. |
In the conversation thread here, we discussed how to make oqs's C library compile to WASM. The build script and anything else internal should be modified to support compilation to the common WASM targets here for the rust crate, that way no modification is needed for users of this library.
The text was updated successfully, but these errors were encountered: