#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

#1095 in Procedural macros

Download history 94/week @ 2024-02-10 48/week @ 2024-02-17 149/week @ 2024-02-24 28/week @ 2024-03-02 10/week @ 2024-03-09 7/week @ 2024-03-16 27/week @ 2024-03-30 3/week @ 2024-04-06 23/week @ 2024-04-13

77 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

~330–790KB
~19K SLoC