Skip to main content

proto_path_to_stem

Function proto_path_to_stem 

Source
pub fn proto_path_to_stem(proto_path: &str) -> String
Expand description

Convert a .proto file path to its content-file stem.

e.g., "google/protobuf/timestamp.proto""google.protobuf.timestamp". Content files append "", ".__view", ".__oneof", ".__view_oneof", or ".__ext" plus ".rs" — emitted only for kinds with non-empty content.