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

Modify bindings to generate an emscripten target #235

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JosiahParry
Copy link

@JosiahParry JosiahParry commented May 3, 2024

The PR adds emscripten-wasm32 bindings enabling extendr to work with webr.
This PR modifies the yml to also generate emscripten bindings. We have tested and compiled rsgeo to wasm using this approach.

@JosiahParry JosiahParry changed the title [Draft] modify bindings to generate an emscripten target Modify bindings to generate an emscripten target May 3, 2024
Copy link
Member

@CGMossa CGMossa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM: One comment is, I thought the build.rs had to modified somehow. That it should be modified because otherwise it would actually not generate the bindings for emscripten, if it was asked to do so.

But what this does, is it provide a compatible cached emscripten bindings, so when using libR-sys without use-bindgen feature, it will use that to link.

So there is still an ambiguity here that we need to address.

@CGMossa
Copy link
Member

CGMossa commented May 9, 2024

Let us wait a little on merging this. Josiah and I have to do some diligence.

@JosiahParry
Copy link
Author

Agreed. I'll move into draft.

@JosiahParry JosiahParry marked this pull request as draft May 9, 2024 16:03
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.

2 participants