blob: 239e6f945be1eff2f7ac53547fb85cb6f1d4c667 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use std::process::{Command, exit};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let buf_path = format!("{}/../../api", env!("CARGO_MANIFEST_DIR"));
let status = Command::new("buf")
.arg("generate")
.current_dir(buf_path)
.status()?;
if !status.success() {
exit(status.code().unwrap_or(-1))
}
Ok(())
}
|