about summary refs log blame commit diff
path: root/tvix/build/src/buildservice/mod.rs
blob: cbee221a5e239033ecb3324baab80c0aaeb06a0d (plain) (tree)
1
2
3
4
5
6
7




                                        

         






                                                                              
use tonic::async_trait;

use crate::proto::{Build, BuildRequest};

mod dummy;
mod grpc;

pub use dummy::DummyBuildService;

#[async_trait]
pub trait BuildService: Send + Sync {
    /// TODO: document
    async fn do_build(&self, request: BuildRequest) -> std::io::Result<Build>;
}