Skip to main content

Module archive

Module archive 

Source
Expand description

Native archive module for creating and extracting zip/tar archives.

Exports (post-cluster-#3, partial): archive.zip_extract, archive.tar_extract.

Phase 2c partial migration: the two extract functions take Array<int> input (cluster #3 Array marshal scope) and are wired here on the typed marshal layer. The two create functions (archive.zip_create / archive.tar_create) take Array<{name: string, data: string}> input which requires the typed-object marshal extension (cluster #4 in docs/defections.md 2026-05-06). They are NOT registered until that cluster lands; users calling them today get a “no such method” error rather than a half-typed shell. The create logic itself is uncomplicated (zip/tar writer over a Vec sink) and rebuilds in a few lines once the typed-object FromSlot impl exists.

Functions§

create_archive_module
Create the archive module with extraction functions registered. Create functions deferred to cluster #4 (see module doc comment).