only_alloc
only_alloc
wraps another allocator and disables deallocating memory within it.
It can be used either as a global allocator or as an allocator from #![feature(allocator_api)]
.
It can be used with no_std
environments and it contains zero dependencies.
use MiMalloc;
use GlobalOnlyAlloc;
static ONLY_MIMALLOC: = GlobalOnlyAlloc;
Installation
Why?
Maybe you have a use for this because I don't. It might be microscopically faster for CLI tools. I simply enjoyed writing it.