no_alloc_check 0.1.0

Proc-macro attribute for no_alloc; cfg-gated hybrid marker.
Documentation
1
2
3
4
5
6
7
8
9
10
#![allow(unexpected_cfgs)] // real usage sets this via [lints.rust] in Cargo.toml; see README

#[no_alloc_check::no_alloc]
fn compute(x: i32) -> i32 {
    x + 1
}

fn main() {
    assert_eq!(compute(41), 42);
}