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




                                        
              

         


                           
                                 
                             





                                                                              
use tonic::async_trait;

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

mod dummy;
mod from_addr;
mod grpc;

#[cfg(target_os = "linux")]
mod oci;

pub use dummy::DummyBuildService;
pub use from_addr::from_addr;

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