# `::func_wrap`
[](https://github.com/danielhenrymantilla/func_wrap.rs)
[](https://crates.io/crates/func_wrap)
[](https://docs.rs/func_wrap)
[](https://gist.github.com/danielhenrymantilla/8e5b721b3929084562f8f65668920c33)
[](https://github.com/danielhenrymantilla/func_wrap.rs/blob/master/Cargo.toml#L7)
[](https://github.com/danielhenrymantilla/func_wrap.rs/actions)
Helper crate for procedural macro authors that wish to duplicate some
received function inside its body, so as to be able to _wrap_ with some
prologue, epilogue, cache-ing, _etc._
## Examples
See https://docs.rs/require_unsafe_in_body for a real-life example of using
it.
[https://docs.rs/require_unsafe_in_body]: https://docs.rs/require_unsafe_in_body