tvl-depot/tvix/glue
Aspen Smith 54609e8c17 feat(tvix/glue): Add AsyncRead wrapper to decompress streams
Add a new AsyncRead wrapper, DecompressedReader, that wraps an
underlying AsyncRead, but sniffs the magic bytes at the start of the
stream to determine which compression format is being used out of the
three that are supported by builtins.fetchTarball, and switches to the
correct decompression algorithm adapter dynamically.

This will be used in the implementation of builtins.fetchTarball

Change-Id: I892a4683d5c93e67d4c173f3d21199bdc6605922
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11019
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
2024-03-11 11:35:18 +00:00
..
benches revert(tvix): don't use Rc::clone explicitly 2024-02-21 18:36:11 +00:00
src feat(tvix/glue): Add AsyncRead wrapper to decompress streams 2024-03-11 11:35:18 +00:00
Cargo.toml feat(tvix/glue): Add AsyncRead wrapper to decompress streams 2024-03-11 11:35:18 +00:00
default.nix feat(tvix/glue): Implement builtins.fetchurl 2024-03-11 02:21:54 +00:00