#decorator #wrap #function #proc-macro

func_wrap

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

5 releases

0.1.3 Nov 23, 2020
0.1.2 Oct 28, 2020
0.1.1 Oct 28, 2020
0.1.0 Oct 27, 2020

#7 in #decorator

Download history 7782/week @ 2024-07-19 6665/week @ 2024-07-26 6132/week @ 2024-08-02 6241/week @ 2024-08-09 7443/week @ 2024-08-16 5923/week @ 2024-08-23 7365/week @ 2024-08-30 7268/week @ 2024-09-06 3632/week @ 2024-09-13 7062/week @ 2024-09-20 6833/week @ 2024-09-27 8254/week @ 2024-10-04 7784/week @ 2024-10-11 9609/week @ 2024-10-18 8273/week @ 2024-10-25 7424/week @ 2024-11-01

34,372 downloads per month
Used in 4 crates (2 directly)

Zlib OR MIT OR Apache-2.0

22KB
513 lines

::func_wrap

Repository Latest version Documentation MSRV License CI

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.

Dependencies

~1.5MB
~37K SLoC