Skip to main content

Module decode

Module decode 

Source
Expand description

Member-oriented decoding of pax or GNU tar streams.

The decoder applies format extensions to member paths and link targets. It does not normalize these values for extraction. Do not use them directly as file-system paths. ArchiveTrait::extract_in validates and normalizes them as specified by crate::extract::ExtractPolicy.

Structs§

DecodePolicy
Controls tar compatibility and the feature subset member decoding may accept.
PaxDecodePolicy
Controls pax compatibility and the feature subset member decoding may accept.
PaxVendorAllowlist
An opaque allowlist of pax vendor namespaces.
TarArchive
This type reads one structurally valid pax or GNU tar archive in one pass.
TarMemberPayload
A tar member payload adapted to MemberPayloadTrait.

Enums§

DecodeError
An error produced while decoding tar members.
DecodePolicyViolation
A tar feature accepted by framing but rejected by the selected DecodePolicy.
PaxVendorExtensionPolicy
Controls which vendor-namespaced pax records may be ignored during decoding.

Constants§

DEFAULT_MAX_GLOBAL_PAX_EXTENSIONS_SIZE
The default maximum total payload size of all global pax extensions.
DEFAULT_MAX_GNU_EXTENSION_SIZE
The default maximum size in bytes of one GNU metadata extension.
DEFAULT_MAX_PAX_EXTENSION_SIZE
The default maximum size in bytes of one local or global pax extension.