snix/tvix/nix-compat/src
edef 97e4600078 refactor(nix-compat/wire/bytes/reader): move size reading to async ctor
with_size only existed to allow separating the phases of reading size
and reading data, and similarly the Size state only existed to allow
folding size reading into poll_read.

Neither of these are necessary if we make the constructor async,
and handle the size reading there.

As a bonus, this makes BytesReader::len sensibly typed, and permits
implementing is_empty, as Clippy demands of us.

Change-Id: I72173ec06d60b7998d16a3ecfc5e6ac5424bbed3
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11542
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
2024-04-29 16:45:23 +00:00
..
aterm chore(nix-compat/aterm): migrate from test_case to rstest 2024-04-19 19:22:10 +00:00
bin docs(nix-compat/drvfmt): fix reference 2023-12-21 16:39:07 +00:00
derivation chore(nix-compat/drv): migrate from test_{case,resources} to rstest 2024-04-19 19:22:10 +00:00
nar refactor(nix-compat/nar/reader): always enable poisoning *API* 2024-04-29 13:32:46 +00:00
narinfo chore(nix-compat/narinfo): migrate from test_case to rstest 2024-04-19 19:22:10 +00:00
nix_daemon feat(tvix/nix-compat/nix_daemon/version): add ProtocolVersion 2024-04-18 12:22:08 +00:00
nixhash chore(nix-compat/nixhash): migrate from test_case to rstest 2024-04-19 19:22:10 +00:00
store_path chore(tvix/nix-compat/store_path): migrate from test_case to rstest 2024-04-19 19:22:10 +00:00
wire refactor(nix-compat/wire/bytes/reader): move size reading to async ctor 2024-04-29 16:45:23 +00:00
lib.rs feat(tvix/nix-compat/nix_daemon/version): add ProtocolVersion 2024-04-18 12:22:08 +00:00
nixbase32.rs chore(nix-compat/nixbase32): migrate from test_case to rstest 2024-04-19 19:22:10 +00:00
path_info.rs feat(tvix/nix-compat/path_info): derive Hash for ExportedPathInfo 2024-04-13 21:41:47 +00:00