tvl-depot/tvix/nix-compat/src
edef 12fb5004d9 fix(nix-compat/narinfo): don't allocate errors early
We also switch the MissingField error to &'static str, since we only 
parse a fixed set of fields.

Together, this makes the performance impact of error handling 
negligible in batch happy-path parsing.

Change-Id: I2bd0ef2f5b35fcaced56b32d238eca75ac199ef1
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9867
Reviewed-by: flokli <flokli@flokli.de>
Autosubmit: edef <edef@edef.eu>
Tested-by: BuildkiteCI
2023-10-28 17:11:22 +00:00
..
aterm feat(nix-compat/{aterm,derivation}): init parser 2023-10-16 12:23:00 +00:00
derivation fix(tvix/nix-compat): don't box CAHash::Text 2023-10-27 12:18:23 +00:00
nar fix(nix-compat/nar/writer): use ByteSlice closer to call site 2023-10-27 17:07:06 +00:00
nixhash fix(tvix/nix-compat): don't box CAHash::Text 2023-10-27 12:18:23 +00:00
store_path refactor(nix-compat/store_path): use nixbase32::decode_fixed 2023-10-27 16:08:06 +00:00
lib.rs feat(tvix/nix-compat): add narinfo parsing and serialisation 2023-10-27 16:08:06 +00:00
narinfo.rs fix(nix-compat/narinfo): don't allocate errors early 2023-10-28 17:11:22 +00:00
nixbase32.rs refactor(nix-compat/nixbase32): clean up encode 2023-10-28 15:41:46 +00:00