Crates.io | tonic-include-proto |
lib.rs | tonic-include-proto |
version | 0.1.1 |
source | src |
created_at | 2022-01-28 15:06:13.318527 |
updated_at | 2022-04-29 14:13:14.566475 |
description | Macro to include protobuf built with tonic |
homepage | |
repository | https://github.com/trisfald/tonic_include_proto |
max_upload_size | |
id | 523104 |
size | 8,325 |
A crate to make using tonic::include_proto
less painful.
This macro invokes the macro tonic::include_proto
for multiple protobuf packages
and each of them are placed in the correct namespace.
The code:
tonic_include_proto::namespaced!("x.y", "x.z");
is equivalent to:
mod x {
mod y {
tonic::include_proto!("x.y");
}
mod z {
tonic::include_proto!("x.z");
}
}