fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut proto_paths = vec![
"idl/chromadb/proto/chroma.proto",
"idl/chromadb/proto/compactor.proto",
"idl/chromadb/proto/coordinator.proto",
"idl/chromadb/proto/heapservice.proto",
"idl/chromadb/proto/logservice.proto",
"idl/chromadb/proto/query_executor.proto",
"idl/chromadb/proto/garbage_collector.proto",
];
#[cfg(debug_assertions)]
let debug_assertions = true;
#[cfg(not(debug_assertions))]
let debug_assertions = false;
if debug_assertions {
proto_paths.push("idl/chromadb/proto/debug.proto");
}
tonic_build::configure()
.emit_rerun_if_changed(true)
.compile(&proto_paths, &["idl/"])?;
Ok(())
}