shepmaster / rust-ffi-omnibus

A collection of examples of using code written in Rust from other languages
http://jakegoulding.com/rust-ffi-omnibus/
Other
495 stars 42 forks source link

Talk about allocators / jemalloc #8

Open shepmaster opened 9 years ago

janderholm commented 6 years ago

There's a pretty good crate called mbox, a malloc based box, that can be used both to encapsulate stuff allocated with libc::malloc and to allocate stuff that can be returned to C and freed with free.