checkers 0.2.1

A sanity checker for global allocations.


Documentation Crates Actions Status

Checkers is a simple allocation checker for Rust that runs purely inside of Rust.


You use checkers by installing it's allocator, then making use of either the #[checkers::test] or checkers::with! macros.

static CHECKED: checkers::Allocator = checkers::Allocator;

fn test_allocations() {
    let _ = Box::into_raw(Box::new(42));

fn test_manually() {
    checkers::with!(|| {
        let _ = Box::into_raw(Box::new(42));