1 /// Which parse to use to parse `.proto` files.
2 #[derive(Debug, Copy, Clone)]
3 pub(crate) enum WhichParser {
4     /// Pure Rust parser implemented by this crate.
5     Pure,
6     /// Parse `.proto` files using `protoc --descriptor_set_out=...` command.
7     Protoc,
8 }
9 
10 impl Default for WhichParser {
default() -> Self11     fn default() -> Self {
12         WhichParser::Pure
13     }
14 }
15