init

Function init 

Source
pub fn init(version: &str) -> Result<(PathBuf, PathBuf), Error<'_>>
Expand description

Install pre-built protobuf compiler binary if it hasn’t been done before and return paths to it content

Version parameter should be a tag name from protobuf repository without v prefix, for example, “21.12” or “22.0-rc3” (see protobuf repository tags).

Return a tuple contains paths to protoc binary and include directory.