pub fn write_proto(target_dir: &Path) -> Result<(), String>
Writes the RPC protobuf file into target_dir.
target_dir