tonic-include-proto

Crates.iotonic-include-proto
lib.rstonic-include-proto
version0.1.1
sourcesrc
created_at2022-01-28 15:06:13.318527
updated_at2022-04-29 14:13:14.566475
descriptionMacro to include protobuf built with tonic
homepage
repositoryhttps://github.com/trisfald/tonic_include_proto
max_upload_size
id523104
size8,325
Andrea (Trisfald)

documentation

https://docs.rs/tonic-include-proto

README

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");
    }
}
Commit count: 10

cargo fmt