-
Notifications
You must be signed in to change notification settings - Fork 13k
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
rustc: Stabilize #[wasm_import_module] as #[link(...)] #52445
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
r? @eddyb |
@bors r+ |
📌 Commit 84a8796d85bf22150a792c6101945e462ecc840b has been approved by |
☔ The latest upstream changes (presumably #52353) made this pull request unmergeable. Please resolve the merge conflicts. |
84a8796
to
350cfb1
Compare
@bors: r=eddyb |
📌 Commit 350cfb15c8db938c026ff1cd479393ef35c1eda6 has been approved by |
This comment has been minimized.
This comment has been minimized.
@bors r- CI test failure ↑ |
350cfb1
to
d30ba72
Compare
@bors: r=eddyb |
📌 Commit d30ba723ba237e805cf5d1d23b649096254a6462 has been approved by |
This commit stabilizes the `#[wasm_import_module]` attribute as `#[link(wasm_import_module = "...")]`. Tracked by rust-lang#52090 this new directive in the `#[link]` attribute is used to configured the module name that the imports are listed with. The WebAssembly specification indicates two utf-8 names are associated with all imported items, one for the module the item comes from and one for the item itself. The item itself is configurable in Rust via its identifier or `#[link_name = "..."]`, but the module name was previously not configurable and defaulted to `"env"`. This commit ensures that this is also configurable. Closes rust-lang#52090
d30ba72
to
b9024f8
Compare
@bors: r=eddyb |
📌 Commit b9024f8 has been approved by |
rustc: Stabilize #[wasm_import_module] as #[link(...)] This commit stabilizes the `#[wasm_import_module]` attribute as `#[link(wasm_import_module = "...")]`. Tracked by #52090 this new directive in the `#[link]` attribute is used to configured the module name that the imports are listed with. The WebAssembly specification indicates two utf-8 names are associated with all imported items, one for the module the item comes from and one for the item itself. The item itself is configurable in Rust via its identifier or `#[link_name = "..."]`, but the module name was previously not configurable and defaulted to `"env"`. This commit ensures that this is also configurable. Closes #52090
☀️ Test successful - status-appveyor, status-travis |
This commit stabilizes the
#[wasm_import_module]
attribute as#[link(wasm_import_module = "...")]
. Tracked by #52090 this new directive inthe
#[link]
attribute is used to configured the module name that the importsare listed with. The WebAssembly specification indicates two utf-8 names are
associated with all imported items, one for the module the item comes from and
one for the item itself. The item itself is configurable in Rust via its
identifier or
#[link_name = "..."]
, but the module name was previously notconfigurable and defaulted to
"env"
. This commit ensures that this is alsoconfigurable.
Closes #52090