Files
vLLM/rust/proto/build.rs
T
JulienDarveOpenAI CodexBugen Zhaomergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
69db1c26b4 [CI/Build][Rust Frontend] Publish vllm-proto on crates.io (#56365)
Co-authored-by: OpenAI Codex <noreply@openai.com>
Co-authored-by: Bugen Zhao <i@bugenzhao.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Signed-off-by: Julien Darve <jdarve@NVIDIA.com>
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
2026-09-11 16:28:52 +08:00

25 lines
723 B
Rust

// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright contributors to the vLLM project
fn main() -> Result<(), Box<dyn std::error::Error>> {
let manifest_dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
let proto_dir = std::path::PathBuf::from(manifest_dir);
let protos = [
proto_dir.join("control.proto"),
proto_dir.join("inference.proto"),
];
for proto in &protos {
println!("cargo:rerun-if-changed={}", proto.display());
}
let file_descriptor_set = protox::compile(&protos, [&proto_dir])?;
tonic_prost_build::configure()
.build_server(true)
.build_client(true)
.compile_fds(file_descriptor_set)?;
Ok(())
}