rustwasm/wee_alloc

Create a C API posix-compatible malloc/free wrapper crate

Open

#9 opened on Feb 2, 2018

View on GitHub
 (2 comments) (3 reactions) (0 assignees)Rust (46 forks)github user discovery
help wantedmentored

Repository metrics

Stars
 (711 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Summary

Add a C API crate that wraps wee_alloc and provides posix malloc and free.

Motivation

C and C++ projects targeting wasm could benefit from wee_alloc too, and more users = more bug reports and reliability work and all that good stuff.

Details

  • New crate at the top level of the repo, depending on wee_alloc

  • Wraps a wee_alloc global allocator and exposes malloc and free (and I think realloc is part of the posix spec too?)

Contributor guide