nrc-protobuf-codegen 2.8.0

Code generator for rust-protobuf. Includes a library and `protoc-gen-rust` binary. See `protoc-rust` and `protobuf-codegen-pure` crates. A minor fork of https://github.com/stepancheg/rust-protobuf/
Documentation
1
2
3
4
5
6
7
8
9
10
11
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",
    }
}