mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 07:08:16 +01:00
10 lines
294 B
Rust
10 lines
294 B
Rust
use std::{env, path::PathBuf};
|
|
|
|
fn main() {
|
|
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
|
|
|
|
tonic_build::configure()
|
|
.file_descriptor_set_path(out_dir.join("helloworld_descriptor.bin"))
|
|
.compile(&["proto/helloworld.proto"], &["/proto"])
|
|
.unwrap();
|
|
}
|