2 releases
0.1.1 | Apr 29, 2022 |
---|---|
0.1.0 | Jan 28, 2022 |
#23 in #invoke
106 downloads per month
6KB
95 lines
Tonic include_proto utilities
A crate to make using tonic::include_proto
less painful.
namespaced!
This macro invokes the macro tonic::include_proto
for multiple protobuf packages
and each of them are placed in the correct namespace.
Example
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");
}
}
lib.rs
:
A crate to make using tonic::include_proto
less painful.
Dependencies
~1.5MB
~35K SLoC