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,
expected_cahash: &Option<CAHash>,
) -> Result<(Node, [u8; 32], u64), NarIngestionError>
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.