#body #unsafe #attributes #wrap #block #macro

macro unsafe_fn_body

Wrap the function body in an unsafe block using attribute macros

2 releases

0.1.1 Feb 29, 2024
0.1.0 Feb 16, 2024

#1109 in Procedural macros

43 downloads per month
Used in ncheat

MIT license

3KB

Wrap the function body in an unsafe block using attribute macros

#[unsafe_fn_body::unsafe_fn_body]
fn unsafe_fn_body(){
}

lib.rs:

#[unsafe_fn_body::unsafe_fn_body]
fn unsafe_fn_body(){
}

Dependencies

~300–750KB
~18K SLoC