Function tvix_store::nar::import::ingest_nar_and_hash

source ·
pub async fn ingest_nar_and_hash<R, BS, DS>(
    blob_service: BS,
    directory_service: DS,
    r: &mut R
) -> Result<(Node, [u8; 32], u64), IngestionError<Error>>
where R: AsyncRead + 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. Returns the castore root node, as well as the sha256 and size of the NAR contents ingested.