5afcbd68ad
- Add tonic/prost for gRPC client generation - Add proto definitions from metadata-agregator service - Add MetadataClient and MetadataService for gRPC communication - Add REST controller exposing metadata endpoints (search, get, sync) - Update config with metadata.endpoint setting - Update flake.nix with protobuf for proto compilation
8 lines
230 B
Rust
8 lines
230 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
tonic_build::configure()
|
|
.build_server(false)
|
|
.build_client(true)
|
|
.compile_protos(&["proto/metadata/v1/metadata.proto"], &["proto"])?;
|
|
Ok(())
|
|
}
|