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

                       
                                
 

                                              
          
              

         


                           
                                 
                             



                                     
                                                                                     
 
use tonic::async_trait;

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

pub mod build_request;
pub use crate::buildservice::build_request::*;
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: proto::BuildRequest) -> std::io::Result<Build>;
}