feat(crypto,archive): implement VL-007 built-in hashes and VL-006 archive creation/gzip/tar fallback
This commit is contained in:
1 parent
b50131f52e
commit
22c8538754
19 files changed
+3326
-133
No files matched your search
@@ -12,8 +12,12 @@ int main()
|
||||
.content = {std::byte{'h'}, std::byte{'i'}},
|
||||
},
|
||||
}};
|
||||
Void::Archive::CreationOptions opts;
|
||||
opts.compression = Void::Archive::has_libarchive_backend()
|
||||
? Void::Archive::ArchiveCompression::Zstd
|
||||
: Void::Archive::ArchiveCompression::None;
|
||||
Void::Archive::VectorByteSink sink;
|
||||
if (!Void::Archive::create_archive(sink, entries).has_value()) {
|
||||
if (!Void::Archive::create(sink, entries, opts).has_value()) {
|
||||
return 1;
|
||||
}
|
||||
Void::Archive::SpanByteSource src{sink.bytes()};
|
||||
|
||||
Reference in new issue
Block a user