tvl-depot/tvix/store/src
Florian Klink 8e2b1de3d5 feat(tvix/store/nixpath): DIGEST_SIZE public, use more consts
Rename PATH_HASH_SIZE to DIGEST_SIZE.

It's a digest, not hash (we don't necessarily have the internal hash
state anymore), and the fact it's about (Nix)Paths is already visible
from the module name.

Also expose ENCODED_DIGEST_SIZE, so we don't need to do the calculation
inside from_string() method, and it becomes more clear this is a
constant.

Change-Id: I0e7577dd7a6e503039037b986313b214e995d826
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7725
Reviewed-by: tazjin <tazjin@tvl.su>
Reviewed-by: jrhahn <mail.jhahn@gmail.com>
Tested-by: BuildkiteCI
2023-01-03 13:03:07 +00:00
..
tests feat(src/proto): add PathInfo.validate() 2023-01-03 13:03:07 +00:00
dummy_blob_service.rs feat(tvix/store): add logging with tracing 2022-12-30 20:25:09 +00:00
dummy_directory_service.rs feat(tvix/store): add logging with tracing 2022-12-30 20:25:09 +00:00
dummy_path_info_service.rs feat(tvix/store): add logging with tracing 2022-12-30 20:25:09 +00:00
lib.rs chore(tvix/store): make importable 2023-01-03 13:03:07 +00:00
main.rs chore(tvix/store): make importable 2023-01-03 13:03:07 +00:00
nixbase32.rs chore(tvix/store/nixbase32): address clippy 2023-01-03 12:06:55 +00:00
nixpath.rs feat(tvix/store/nixpath): DIGEST_SIZE public, use more consts 2023-01-03 13:03:07 +00:00
proto.rs feat(src/proto): add PathInfo.validate() 2023-01-03 13:03:07 +00:00