Function tvix_store::nar::import::ingest_nar

source ·
pub async fn ingest_nar<R, BS, DS>(
    blob_service: BS,
    directory_service: DS,
    r: &mut R
) -> Result<Node, IngestionError<Error>>
where R: AsyncBufRead + Unpin + Send, BS: BlobService + Clone + 'static, DS: DirectoryService,
Expand description

Ingests the contents from a AsyncRead providing NAR into the tvix store, interacting with a BlobService and DirectoryService. It returns the castore root node or an error.