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

rust-wasm

Here are 39 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 {
  
mgattozzi
mgattozzi commented Jun 25, 2018

For those of us who do wasm and things regularly we're going to miss out on what is unclear or not explained well. Help us by filing issues on things that are unclear in the book! It's an easy task to get involved with, opens up more things for us to fix, and helps us find out what still needs improvement!

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

You can’t perform that action at this time.