• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use Customize;
2 
3 /// Path to `protobuf` crate, different when `.proto` file is
4 /// used inside or outside of protobuf crate.
protobuf_crate_path(customize: &Customize) -> &str5 pub(crate) fn protobuf_crate_path(customize: &Customize) -> &str {
6     match customize.inside_protobuf {
7         Some(true) => "crate",
8         _ => "::protobuf",
9     }
10 }
11