feat(tvix/store): use tonic-build for protos

While prost-build already exposes protobuf message types as structs, we
actually need tonic-build too, to be able to get traits for all the RPC
services defined in the proto files.

Change-Id: I7f4c08454bf0d280d577975c7cdae13ccc2d933b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7320
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Florian Klink 2022-11-12 23:23:14 +00:00 committed by flokli
parent 7fbac93940
commit 3676ce8d6d
5 changed files with 2334 additions and 20 deletions

View file

@ -1,6 +1,6 @@
use prost::Message;
include!(concat!(env!("OUT_DIR"), "/tvix.store.v1.rs"));
tonic::include_proto!("tvix.store.v1");
impl Directory {
// The size of a directory is the number of all regular and symlink elements,