[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>
This commit is contained in:
JulienDarve
2026-09-11 16:28:52 +08:00
committed by GitHub
co-authored by OpenAI Codex Bugen Zhao mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent e3f755b732
commit 69db1c26b4
10 changed files with 168 additions and 16 deletions
+1 -6
View File
@@ -19,7 +19,6 @@ itertools.workspace = true
libc.workspace = true
llm-multimodal.workspace = true
openssl.workspace = true
prost.workspace = true
prost-types.workspace = true
rmpv.workspace = true
serde.workspace = true
@@ -37,7 +36,6 @@ tokio-stream.workspace = true
tokio-util.workspace = true
tonic.workspace = true
tonic-health.workspace = true
tonic-prost.workspace = true
tower.workspace = true
tower-http.workspace = true
tracing.workspace = true
@@ -51,12 +49,9 @@ vllm-chat.workspace = true
vllm-engine-core-client.workspace = true
vllm-llm.workspace = true
vllm-metrics.workspace = true
vllm-proto.workspace = true
vllm-text.workspace = true
[build-dependencies]
protox.workspace = true
tonic-prost-build.workspace = true
[dev-dependencies]
anyhow.workspace = true
async-openai = { workspace = true, features = ["full"] }
-24
View File
@@ -1,24 +0,0 @@
// 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(format!("{manifest_dir}/../../proto"));
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(())
}
+1 -3
View File
@@ -9,9 +9,7 @@ mod health;
mod inference;
/// Generated protobuf/gRPC types for the `vllm` package.
pub mod pb {
tonic::include_proto!("vllm");
}
pub use vllm_proto as pb;
pub(crate) use control::ControlGrpcService;
pub use control::ControlServiceImpl;