Skip to content

Commit

Permalink
Update docs to say that wasm_bindgen::module() is also available wi…
Browse files Browse the repository at this point in the history
…th `--target web`. (#3690)
  • Loading branch information
AlexErrant committed Nov 10, 2023
1 parent 962f580 commit f7fdb2f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1368,13 +1368,9 @@ where
}
}

/// Returns a handle to this wasm instance's `WebAssembly.Module`
///
/// Note that this is only available when the final wasm app is built with
/// `--target no-modules`, it's not recommended to rely on this API yet! This is
/// largely just an experimental addition to enable threading demos. Using this
/// may prevent your wasm module from building down the road.
#[doc(hidden)]
/// Returns a handle to this Wasm instance's `WebAssembly.Module`.
/// This is only available when the final Wasm app is built with
/// `--target no-modules` or `--target web`.
pub fn module() -> JsValue {
unsafe { JsValue::_new(__wbindgen_module()) }
}
Expand Down

0 comments on commit f7fdb2f

Please sign in to comment.