The Wayback Machine - https://web.archive.org/web/20210726023649/https://github.com/topics/rust-wasm
Skip to content
#

rust-wasm

Here are 61 public repositories matching this topic...

mstange
mstange commented Jul 5, 2019

Motivation

I am using the following pattern to efficiently initialize a large buffer inside wasm memory from JavaScript without copies (see #1079 for full motivation):

#[wasm_bindgen]
pub struct WasmMemBuffer {
    buffer: Vec<u8>,
}

#[wasm_bindgen]
impl WasmMemBuffer {
    #[wasm_bindgen(constructor)]
    pub fn new(byte_length: u32, f: &js_sys::Function) -> Self {
  

Improve this page

Add a description, image, and links to the rust-wasm topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the rust-wasm topic, visit your repo's landing page and select "manage topics."

Learn more