Skip to content

Update docs to say that wasm_bindgen::module() is also available with --target web.#3690

Merged
daxpedda merged 2 commits intowasm-bindgen:mainfrom
AlexErrant:moduletargetweb
Nov 10, 2023
Merged

Update docs to say that wasm_bindgen::module() is also available with --target web.#3690
daxpedda merged 2 commits intowasm-bindgen:mainfrom
AlexErrant:moduletargetweb

Conversation

@AlexErrant
Copy link
Copy Markdown
Contributor

@AlexErrant AlexErrant commented Nov 7, 2023

The docs were originally written in this commit with a corresponding runtime check. The runtime check was updated here* , but the corresponding doc was not updated. This PR updates that doc.

* Click to expand the mod.rs diff since Github doesn't load it because it's too large, then ctrl-f is currently only supported.


Separately, what would it take to graduate this API to a non-experiment?

@AlexErrant AlexErrant changed the title Update docs to say that wasm_bindgen::module() is also available with --target-web. Update docs to say that wasm_bindgen::module() is also available with --target web. Nov 7, 2023
Copy link
Copy Markdown
Member

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

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

I'm fine with moving this to stable, what it exposes is stable after all. WebAssembly.Memory, ``WebAssembly.TableandWebAssembly.Instance.prototype.exports` is already stably exported as well.

Could you go ahead and do that as well in this PR?

Copy link
Copy Markdown
Member

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

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

Thanks!

@daxpedda daxpedda merged commit f7fdb2f into wasm-bindgen:main Nov 10, 2023
@AlexErrant AlexErrant deleted the moduletargetweb branch March 7, 2025 16:02
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