chore(tvix/store): move protos into separate mod.rs

This allows adding more stuff into this namespace, from different files.

Also move tests on proto-related code from src/tests to src/proto/tests.

Change-Id: I49e066fce90efbc18e16d68f94497b32ed5625c0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8091
Reviewed-by: tazjin <tazjin@tvl.su>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2023-02-12 12:50:00 +01:00 committed by flokli
parent 60abca1d8e
commit 80f68bf828
6 changed files with 6 additions and 3 deletions

View file

@ -15,6 +15,9 @@ tonic::include_proto!("tvix.store.v1");
/// [`tonic_reflection`](https://docs.rs/tonic-reflection).
pub const FILE_DESCRIPTOR_SET: &[u8] = tonic::include_file_descriptor_set!("tvix.store.v1");
#[cfg(test)]
mod tests;
/// Errors that can occur during the validation of Directory messages.
#[derive(Debug, PartialEq, Eq, Error)]
pub enum ValidateDirectoryError {

View file

@ -0,0 +1,3 @@
mod directory;
mod directory_nodes_iterator;
mod pathinfo;

View file

@ -1,6 +1,3 @@
mod directory;
mod directory_nodes_iterator;
mod directory_service;
mod nar;
mod path_info_service;
mod pathinfo;