Around Crate
This is the around crate, a Rust procedural macro library for calling other functions inside your desired ones.
Getting Started
To use the around crate, add it to your Cargo.toml file:
[]
= { = "0.1.0"}
Usage
The around crate provides a procedural macros before, afer and both that enables running another function when expected.
The function must exist and be in scope.
Here's a basic example of how to use it:
In this example database_clean would be called twice, once before and once after your original function code.
Currently this literally translates to: