blob: 2590e9e4b9d0f48827de9bbe90ef2afc9820771e [file] [log] [blame]
use Customize;
/// Path to `protobuf` crate, different when `.proto` file is
/// used inside or outside of protobuf crate.
pub(crate) fn protobuf_crate_path(customize: &Customize) -> &str {
match customize.inside_protobuf {
// Can't use `crate::` paths before Rust 1.32.0
//Some(true) => "crate",
_ => "::protobuf",
}
}