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
//! Procedural macros for the omnia guest.
use TokenStream;
use parse_macro_input;
/// Generates the guest infrastructure based on the specified configuration.
///
/// # Example
///
/// ```rust,ignore
/// guest_macro::guest!({
/// owner: "at",
/// provider: MyProvider,
/// http: [
/// "/some/get/path": get(SomeRequest, SomeResponse),
/// "/some/other-get/path": get(SomeRequest with_query, SomeResponse),
/// "/some/post/path": post(SomeRequest, SomeResponse),
/// "/some/post-body/path": post(SomeRequest with_body, SomeResponse),
/// ],
/// messaging: [
/// "topic-name.v1": TopicMessage,
/// "other-topic.v2": OtherTopicMessage,
/// ]
/// });
/// ```