const DEFS: &[&str] = &["proto/github.com/moby/buildkit/frontend/gateway/pb/gateway.proto"]; const PATHS: &[&str] = &["proto"]; fn main() -> Result<(), Box> { tonic_build::configure() .build_client(true) .build_server(false) .compile(DEFS, PATHS)?; Ok(()) }