fn main() -> Result<(), Box> { let out_dir = std::path::PathBuf::from(std::env::var("OUT_DIR")?); tonic_build::configure() .build_server(true) .build_client(true) .file_descriptor_set_path(out_dir.join("seaweed_descriptor.bin")) .compile_protos( &[ "proto/volume_server.proto", "proto/master.proto", "proto/remote.proto", "../weed/pb/filer.proto", ], &["proto/", "../weed/pb/"], )?; Ok(()) }