Skip to content
No description, website, or topics provided.
Rust JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
src
.gitignore
Cargo.toml
LICENSE
README.md

README.md

Rust Custom allocator example for WebAssembly

A naive first-fit memory allocator for wasm32 target in Rust.

Requirements

  • Rust 1.33+
  • wasm-bindgen CLI

Run following command to install wasm-bindgen CLI:

$ cargo install wasm-bindgen-cli

Building and Testing

$ cargo build --release --target wasm32-unknown-unknown
$ wasm-bindgen --browser --no-modules target/wasm32-unknown-unknown/release/wasm_custom_allocator_example.wasm --out-dir public/dist

Then run an http-server with document root = public/. Navigate to the URL the server listening on.

You can’t perform that action at this time.