-
Notifications
You must be signed in to change notification settings - Fork 12
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
Is it possible to compile a rust project which uses ada-url to WASM? #15
Comments
We compile and test Ada core to WebAssembly - https://github.com/ada-url/ada/tree/main/tests/wasm. I think it is possible to compile Ada Rust package to WASM, but if you encountered a specific issue, we'll be happy to help. |
cc @Boshen cc @Brooooooklyn |
Quick first attempt: Compile to wasm error output
|
@Boshen Make sure your build settings include a reference to the C++ standard library. |
@anonrig Can you try the commands on your machine, I'm not familiar with the settings.
|
I had asked about this on the unofficial rust discord channel before posting here. It seems that including header files at least gets it to compile. https://discord.com/channels/273534239310479360/1123415399770374164 |
From I know, the C++ can't be compiled into |
Sorry for the delayed response, I was on vacation. I'll go ahead and close this. Thank you for all of your help! |
First off, thanks for the awesome crate. Also, I apologize for creating an issue for a question.
I'm wondering if it is possible to use
ada-url
in a project when compiling to WASM? I've experimented with it and haven't had much luck. At the same time, I have no experience with WASM so I'm hoping that I am missing something.For context, I'm building a JSON Schema crate. At some point in the future, I'd like to compile it to WASM. While I'd really like to use
ada-url
, I also do not want to pick up a dependency that makes a WASM target impractical.Thank you for your time. Again, I'm sorry this is somewhat off topic. Please feel free to close if you'd prefer to keep issues to... well, issues.
The text was updated successfully, but these errors were encountered: