include_proto!() { /* proc-macro */ }
Expand description

Includes generated Protobuf definitions from tonic.

Accepts a single argument for the gRPC package name, which then recreates the package structure as modules.

Input

quilkin::include_proto!("quilkin.filters.debug.v1alpha1");

Output

mod quilkin {
    pub(crate) mod extensions {
        pub(crate) mod filters {
            pub(crate) mod debug {
                pub(crate) mod v1alpha1 {
                    #![doc(hidden)]
                    tonic::include_proto!("quilkin.filters.debug.v1alpha1");
                }
            }
        }
    }
}