fn apply_wasm_only(
attrs: &mut Vec<Attribute>,
sig: &mut Signature,
) -> Result<Ident>Expand description
Applies #[wasm_only], if present, returning the JS-facing name.
The marker means JavaScript is the only intended caller. Rename the function so Rust callers do not reach for it, hide it from documentation, and deprecate it so any that do get a warning and see it struck through in autocomplete. The JS name is unaffected: it lives on the shim, which calls the renamed function.