MCPcopy Create free account
hub / github.com/cosdata/cosdata / main

Function main

build.rs:1–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1fn main() -> Result<(), Box<dyn std::error::Error>> {
2 println!("cargo:rerun-if-changed=build.rs");
3 #[cfg(feature = "grpc-server")]
4 {
5 println!("cargo:rerun-if-changed=proto");
6 let out_dir = std::path::PathBuf::from(std::env::var("OUT_DIR").unwrap());
7
8 let config = tonic_build::configure()
9 .build_server(true)
10 .build_client(false)
11 .file_descriptor_set_path(out_dir.join("vector_service.bin"));
12
13 config.compile_protos(&["proto/vector_service.proto"], &["proto/"])?;
14 }
15
16 Ok(())
17}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected