feat(metrics): Metrics derive macro (#592)

* feat(metrics): `Metrics` derive macro

* rename metrics to metrics-derive

* use fully qualified fmt path

* metric vec with capacity

* favor metrics over simple scope attr, simplify code

* pull metric description from doc comment

* rm debug log

* add more docs and sample usage

* link to metrics macros

* add tests for metrics derive macro

* clippy

* simplify path comparison

* cleanup

* remove unused dep

* rename stage metrics
This commit is contained in:
Roman Krasiuk
2022-12-27 00:27:24 +02:00
committed by GitHub
parent d2b4081849
commit 663efa8d2a
22 changed files with 814 additions and 86 deletions

View File

@ -0,0 +1,5 @@
#[test]
fn compile_test() {
let t = trybuild::TestCases::new();
t.compile_fail("tests/compile-fail/*.rs");
}