tvl-depot/tvix/store/src
Florian Klink ff40332864 refactor(tvix/store/nar/import): add ingest_nar_and_hash
This wraps ingest_nar, but also keeps track of the number of bytes read,
and calculates the sha256 digest of it.

Make use of it in the NixHTTPPathInfoService, where this code is coming
from.

Change-Id: I9c54e93d3ec8ed9ede87aed43e04d114fb06897b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11787
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
2024-06-11 22:47:31 +00:00
..
bin feat(tvix/tracing): introduce common tvix-tracing crate 2024-06-10 16:35:08 +00:00
nar refactor(tvix/store/nar/import): add ingest_nar_and_hash 2024-06-11 22:47:31 +00:00
pathinfoservice refactor(tvix/store/nar/import): add ingest_nar_and_hash 2024-06-11 22:47:31 +00:00
proto refactor(tvix/store): drop calculate_nar from PathInfoService 2024-05-11 13:33:59 +00:00
tests chore(tvix/store): migrate import.rs and tests/pathinfo.rs to rstest 2024-04-19 19:22:10 +00:00
import.rs refactor(tvix/store): drop calculate_nar from PathInfoService 2024-05-11 13:33:59 +00:00
lib.rs feat(tvix/store): add rstest-based PathInfoService tests 2024-03-28 07:02:18 +00:00
utils.rs refactor(tvix/store): drop calculate_nar from PathInfoService 2024-05-11 13:33:59 +00:00