summaryrefslogtreecommitdiff
path: root/vendor/tonic-build/src/compile_settings.rs
blob: e2de979105b471bb1b2dce51bbd84c110768de0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug, Clone)]
pub(crate) struct CompileSettings {
    #[cfg(feature = "prost")]
    pub(crate) codec_path: String,
}

impl Default for CompileSettings {
    fn default() -> Self {
        Self {
            #[cfg(feature = "prost")]
            codec_path: "tonic::codec::ProstCodec".to_string(),
        }
    }
}