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 support for wasm_import_module #1691

Merged
merged 1 commit into from
Dec 11, 2019
Merged

Add support for wasm_import_module #1691

merged 1 commit into from
Dec 11, 2019

Conversation

Jasper-Bekkers
Copy link
Contributor

For some of our wasm code we wanted to communicate with existing C bindings (and piggyback existing bindgen code), we needed this attribute supported from bindgen to make that work.

Without the attribute the linked code would end up in the default env namespace but for our use-case we needed to have these bindgen'd APIs in a different namespace.

I hope I've exposed the setting in the right way but feel free to let me know otherwise.

Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

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

This looks great, thank you! Just one minor nit.

src/codegen/mod.rs Show resolved Hide resolved
@emilio
Copy link
Contributor

emilio commented Dec 10, 2019

Also, could you squash your commits?

@Jasper-Bekkers
Copy link
Contributor Author

Just squashed and re-indented.

src/codegen/mod.rs Show resolved Hide resolved
@emilio emilio merged commit 09f6c1d into rust-lang:master Dec 11, 2019
@emilio emilio mentioned this pull request Dec 11, 2019
emilio added a commit that referenced this pull request Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants