tendermint/
proto_macros.rs

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
//! Macros to facilitate protobuf conversions

macro_rules! tendermint_pb_modules {
    {
        $($contents:item)*
    } => {
        mod v0_34 {
            use tendermint_proto::v0_34 as pb;
            #[allow(unused_imports)]
            use tendermint_proto::Protobuf;

            $($contents)*
        }
        mod v0_37 {
            use tendermint_proto::v0_37 as pb;
            #[allow(unused_imports)]
            use tendermint_proto::Protobuf;

            $($contents)*
        }
        mod v0_38 {
            use tendermint_proto::v0_38 as pb;
            #[allow(unused_imports)]
            use tendermint_proto::Protobuf;

            $($contents)*
        }
    };
}