I can't figure out the actual file format, partly because your document exposes bare UMLs [1]. Also ideally you better do the runtime detection for x86-64 features (otherwise, well, you need to do what you are doing now).
(I have much more ambitious and possibly competiting format called Aqueous [2], as you may have seen in r/rust, but these points are genuine advices for you ;-)
Does it allow for padding so that the start of files can be (memory/filesystem)-page aligned? That allows for mmap-ing non-compressed members and also for reflinking in/out contents from/to the filesystem (on Linux with btrfs, XFS). With tar it's possible with some padding tricks involving PAX comments, see https://pkg.go.dev/nontrivialpursuit.org/deduptar (mine!).
For any new format I'd like to have that flexibility at least in the format; the utilities can implement it later or not at all but at least the format should allow for the required alignment.
(I have much more ambitious and possibly competiting format called Aqueous [2], as you may have seen in r/rust, but these points are genuine advices for you ;-)
[1] https://github.com/brmmm3/zar-rs/blob/master/doc/zar-file-fo...
[2] https://lifthrasiir.github.io/aqueous/
For any new format I'd like to have that flexibility at least in the format; the utilities can implement it later or not at all but at least the format should allow for the required alignment.
can you avoid zstd?
exiting 'pure rust' breaks the deal for me when considering to include in my project.
[1] https://docs.rs/libzstd-rs-sys/
[2] https://docs.rs/mzstd/