1 unstable release
Uses old Rust 2015
0.1.0 | Dec 4, 2018 |
---|
#38 in #global-allocator
Used in cpp_new
3KB
51 lines
Rust C++ New
This Rust crate maps the C++ new/delete/new[]/delete[] operators via extern "C" functions into Rust's allocators.
How to Use
Just include the crate like:
extern crate cpp_new;
And it'll remap the C++ new/delete to Rust's global allcators.
Where to Use
Where you want to use this is if you have some pre-existing C++ library that you do not control, and you want to ensure the allocations being done in the library are being tracked by Rust's global allocator.
License
This code is licensed under the CC0 1.0 Universal license, which is a permissible public domain license.
No runtime deps
~185KB