pub fn compile_protos(proto: impl AsRef<Path>) -> io::Result<()> {
    let proto_path: &Path = proto.as_ref();

    // directory the main .proto file resides in
    let proto_dir = proto_path
        .parent()
        .expect("proto file should reside in a directory");

    self::configure().compile_protos(&[proto_path], &[proto_dir])
}
Simple `.proto` compiling. Use [`configure`] instead if you need more options.

The include directory will be the parent folder of the specified path.
The package name will be the filename without the extension.
tonic-build/src/prost.rs