| Crates.io | metrics-utils-macros |
| lib.rs | metrics-utils-macros |
| version | 0.1.0 |
| created_at | 2025-05-28 21:31:23.854901+00 |
| updated_at | 2025-05-28 21:31:23.854901+00 |
| description | Procedural utility macros for ease of recording metrics. |
| homepage | https://github.com/yourusername/metrics-utils-macros |
| repository | https://github.com/yourusername/metrics-utils-macros |
| max_upload_size | |
| id | 1693278 |
| size | 8,052 |
Procedural macros for measuring function execution time and recording metrics in Rust applications.
Add this to your Cargo.toml:
[dependencies]
metrics-utils-macros = "0.1.0"
Annotate your functions:
use metrics_utils_macros::{measured_async_function, measured_function};
#[measured_async_function]
async fn my_async_fn() {
// ...
}
#[measured_function]
fn my_fn() {
// ...
}
See docs.rs/metrics-utils-macros for full documentation.
MIT OR Apache-2.0
Contributions are welcome! Please open issues or pull requests on GitHub. # metrics-utils-macros