1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Handler metadata collected at link time via the `inventory` crate.
//!
//! Every `#[orpc(method, path)]`-annotated handler emits an `inventory::submit!`
//! call that registers a `HandlerMetadata` entry. `inventory::iter::<HandlerMetadata>`
//! then provides access to all registered entries from any file in the binary.
/// Metadata registered by the `#[orpc(method, path)]` attribute macro.
///
/// One instance is created per annotated handler function and registered
/// globally at link time — no central list required.
collect!;