spark-connect 0.2.1

Rust client for Apache Spark Connect.
Documentation
use std::fs;


fn main() -> Result<(), Box<dyn std::error::Error>> {
    let files = fs::read_dir("./protobuf/spark/connect/")?;

    let mut file_paths: Vec<String> = vec![];

    for file in files {
        let entry = file?.path();
        file_paths.push(entry.to_str().unwrap().to_string());
    }

    tonic_prost_build::configure()
        .protoc_arg("--experimental_allow_proto3_optional")
        .build_server(false)
        .build_client(true)
        .build_transport(true)
        .compile_protos(file_paths.as_ref(), &["./protobuf/".to_string()])?;

    Ok(())
}