tvl-depot/tvix/store/src/nar
Florian Klink 419f7d0f0c feat(tvix/store): add NARCalculationService trait and impl
This adds a NARCalculationService trait, which will take a root node,
and provide a proto::CalculateNarResponse in return.

It also adds a NonCachingNARCalculationService implementation, that will
simply always render the NAR in memory to calculate the size and sha256,
without any caching.

Change-Id: Id1ffb18559212fa6001f70f2634bbc3dfd0aa343
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8096
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
2023-03-10 10:58:55 +00:00
..
mod.rs feat(tvix/store): add NARCalculationService trait and impl 2023-03-10 10:58:55 +00:00
non_caching_calculation_service.rs feat(tvix/store): add NARCalculationService trait and impl 2023-03-10 10:58:55 +00:00
renderer.rs feat(tvix/store): validate blob size in NARRenderer 2023-03-10 10:58:55 +00:00