[smg][mesh] extract mesh to mesh crate to reduce compile time (#17907)

This commit is contained in:
Simo Lin
2026-01-28 17:58:42 -08:00
committed by GitHub
parent 0368ddf9ea
commit ac16d4450e
28 changed files with 31 additions and 10065 deletions
-8
View File
@@ -12,7 +12,6 @@ macro_rules! set_env {
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Rebuild triggers
println!("cargo:rerun-if-changed=src/mesh/proto/gossip.proto");
println!("cargo:rerun-if-changed=src/proto/sglang_scheduler.proto");
println!("cargo:rerun-if-changed=src/proto/vllm_engine.proto");
println!("cargo:rerun-if-changed=Cargo.toml");
@@ -31,13 +30,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
&["src/proto"],
)?;
// Compile gossip protobuf files
tonic_prost_build::configure()
// Generate both client and server code
.build_server(true)
.build_client(true)
.compile_protos(&["src/mesh/proto/gossip.proto"], &["src/mesh/proto"])?;
// Set version info environment variables
let version = read_cargo_version().unwrap_or_else(|_| DEFAULT_VERSION.to_string());
let target = std::env::var("TARGET").unwrap_or_else(|_| get_rustc_host().unwrap_or_default());