limit-alloc
A custom allocator that allows to limit the available memory.
Usage
use Limit;
use System;
// Limit available RAM to 4MB
static A: = new;
You can run that example locally and see how the process crashes:
$ cargo run --example huge_vec
memory allocation of 4000001 bytes failed
Aborted