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
Cannot build on wasm32-unknown-unknown target #153
Comments
|
I’ve never built Onig for WASM. The Artichoke peeps have though. This is their reference: https://github.com/artichoke/artichoke/blob/414b7a2fe387c480d1385efb0f63963153754a3e/artichoke-backend/Cargo.toml#L31 |
|
I wonder if the default features could be the difference. Disabling that will mean we don’t try to generate an up to date set of bindings and fall back on our built in set. I guess we have one that works for WASM if Artichoke has it working. |
Artichoke does not build with This upstream issue is relevant for one reason why this doesn't work: rustwasm/team#291. |
@iwillspeak next time, please feel free to @ me if there's onig-Artichoke questions I can help with |
|
On Ubtuntu 18.04, using "wasm-pack", I had got the same However, now I get the error message Is this the kind of error that will vanish when I somehow configure wasm-pack to create a wasm32-unknown-emscripten target output? (I have now solved my original problem by using a different regexp crate, but maybe this comment is somehow helpful, so I leave it here). |
|
Got this error when wanting to use onig with |
|
Doing some more digging on this, it seems that the underlying c library, Oniguruma, doesn't build cleanly on either EDIT Scratch that. Onig does build on Emscripten if you have the rust target I'm not really sure what we can do about building for Still open to any PRs if people want to contribute, but closing this issue for now. |
|
Last I knew, building C libraries is only possible with emscripten unfortunately. Edit: rustwasm/team#291 and rustwasm/team#291 (comment) |
I tried to add syntect with
onigdependency on wasm target but it failed to compile. Looking into it, it turned out to a problem withrust-onig.Steps to reproduce
onig = "6"dependencyCargo.tomlOutout of a clean (first) build
Enviromment
OS:
Fedora release 32 (Thirty Two) x86_64; Kernel :5.8.10-200.fc32.x86_64(if that matters)Clang Version:
rustcversion:rustc 1.46.0 (04488afe3 2020-08-24)cargoversion:cargo 1.46.0 (149022b1d 2020-07-17)The text was updated successfully, but these errors were encountered: