#block #unsafe #body #attributes

macro unsafe_fn_body

Wrap the function body in an unsafe block using attribute macros

4 releases

0.1.3 May 28, 2024
0.1.2 May 28, 2024
0.1.1 Feb 29, 2024
0.1.0 Feb 16, 2024

#1191 in Procedural macros

Download history 9/week @ 2024-09-20 8/week @ 2024-09-27 2/week @ 2024-10-04

227 downloads per month
Used in ncheat

MIT license

4KB

Wrap the function body in an unsafe block using attribute macros

#[unsafe_fn_body::unsafe_fn_body]
fn unsafe_fn(){
    // ...
}
fn unsafe_fn(){
    unsafe{
        // ...
    }
}

Dependencies

~215–650KB
~15K SLoC