#macro #unsafe #unsafe-fn-body

yanked 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

#97 in #unsafe

Download history

227 downloads per month

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

~200–630KB
~15K SLoC