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". The five content files append "", ".__view", ".__oneof", ".__view_oneof", ".__ext" plus ".rs".