xref: /tonic/tonic-build/src/compile_settings.rs (revision 18a2b309)
1 #[derive(Debug, Clone)]
2 pub(crate) struct CompileSettings {
3     #[cfg(feature = "prost")]
4     pub(crate) codec_path: String,
5 }
6 
7 impl Default for CompileSettings {
default() -> Self8     fn default() -> Self {
9         Self {
10             #[cfg(feature = "prost")]
11             codec_path: "tonic::codec::ProstCodec".to_string(),
12         }
13     }
14 }
15