about summary refs log tree commit diff
path: root/tvix/build/src/buildservice/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/build/src/buildservice/mod.rs')
-rw-r--r--tvix/build/src/buildservice/mod.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tvix/build/src/buildservice/mod.rs b/tvix/build/src/buildservice/mod.rs
new file mode 100644
index 000000000000..cd0b7eb5d70f
--- /dev/null
+++ b/tvix/build/src/buildservice/mod.rs
@@ -0,0 +1,12 @@
+use tonic::async_trait;
+
+use crate::proto::{Build, BuildRequest};
+
+mod dummy;
+pub use dummy::DummyBuildService;
+
+#[async_trait]
+pub trait BuildService: Send + Sync {
+    /// TODO: document
+    async fn do_build(&self, request: BuildRequest) -> std::io::Result<Build>;
+}