snix/tvix/nix-compat/src/nar
tcmal 671bdff5dc test(tvix/nix-compat): add debug assertions for nar reader
Adds debug assertions to ensure that the reader's variants are upheld.
If any of the following happens, then the currently in use reader must
be abandoned:
  * A directory or file reader encounters an error
  * A directory or file reader is dropped before being fully read from
Additionally, a directory reader must not be read from again after it
has returned None.
These checks are only used when debug_assertions are on, so vanish in
release mode.

Resolves two TODO items added by edef

Change-Id: I27bd9643a632798db5351957506c166b9bd5ca4e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11508
Reviewed-by: flokli <flokli@flokli.de>
Reviewed-by: edef <edef@edef.eu>
Autosubmit: Aria Shrimpton <me@aria.rip>
Tested-by: BuildkiteCI
2024-04-25 17:29:57 +00:00
..
reader test(tvix/nix-compat): add debug assertions for nar reader 2024-04-25 17:29:57 +00:00
tests feat(tvix/nix-compat/nar/reader): add tests 2023-10-18 12:31:57 +00:00
wire chore(3p/sources): Bump channels & overlays 2024-01-19 21:47:32 +00:00
writer refactor(tvix/nix-compat): move nar writer to tokio 2024-04-13 10:09:35 +00:00
mod.rs feat(tvix/nix-compat): NAR reader 2023-10-18 11:40:06 +00:00