#![warn(unreachable_pub)]
#![allow(clippy::redundant_pub_crate)]
#![cfg_attr(test, allow(clippy::disallowed_methods))]
#![cfg_attr(
not(test),
warn(clippy::indexing_slicing, clippy::arithmetic_side_effects)
)]
mod api;
pub(crate) mod closed_enum;
mod config;
pub(crate) mod copy;
mod creation;
mod destination_state;
mod error;
mod formats;
mod inspection;
mod limit;
mod listed;
mod mark;
mod path_text;
mod pattern;
mod reader;
mod report;
mod request;
mod security;
mod selection;
mod sink;
mod staging;
#[cfg(test)]
pub(crate) mod test_utils;
mod types;
mod writer;
#[cfg(test)]
use exarch_testkit::raw_zip;
pub use api::create_archive;
pub use api::extract_archive;
pub use api::list_archive;
pub use api::verify_archive;
pub use closed_enum::ClosedEnum;
pub use config::Admit;
pub use config::AllowedFeatures;
pub use config::DecodeReuse;
pub use config::DecodeReuseKind;
pub use config::DecompressionBudget;
pub use config::ExistingFiles;
pub use config::ExtractionOptions;
pub use config::IntegrityCheck;
pub use config::ListOptions;
pub use config::ParallelDecode;
pub use config::PermissionPolicy;
pub use config::ReuseLimit;
pub use config::SecurityConfig;
pub use config::SolidArchives;
pub use config::SolidLimits;
pub use config::Staging;
pub use config::StoredTargets;
pub use config::VerificationOptions;
pub use config::ZipConsistencyPolicy;
pub use destination_state::DestinationState;
pub use error::ArchiveError;
pub use error::CentralRecordOrdinal;
pub use error::CompressionRatio;
pub use error::ConfigProblem;
pub use error::ConfigSetting;
pub use error::DestinationStep;
pub use error::EndRecordKind;
pub use error::ErrorCode;
pub use error::FfiDetail;
pub use error::FfiErrorMessage;
pub use error::FfiKind;
pub use error::FfiNameCollision;
pub use error::FfiRestore;
pub use error::FfiSourceFault;
pub use error::HiddenRegion;
pub use error::InvalidArchiveSubCode;
pub use error::IoContext;
pub use error::IoKind;
pub use error::KindSource;
pub use error::Malformation;
pub use error::NativeKind;
pub use error::OccupiedBy;
pub use error::Partial;
pub use error::PartialOutcome;
pub use error::PartialWrites;
pub use error::PatternRefusal;
pub use error::PolicySetting;
pub use error::PortableHazard;
pub use error::ProtectedPath;
pub use error::QuotaKind;
pub use error::QuotaResource;
pub use error::ReaderFormatError;
pub use error::ReplaceFailure;
pub use error::RequestedLevel;
pub use error::Restore;
pub use error::RestoreKind;
pub use error::Result;
pub use error::SecurityViolationSubCode;
pub use error::SevenZHeaderTable;
pub use error::SolidMemoryScope;
pub use error::SpecialFile;
pub use error::StagingLeftover;
pub use error::SubCode;
pub use error::TarAmbiguity;
pub use error::TarExtensionKind;
pub use error::TarHeaderField;
pub use error::TarNonRegularKind;
pub use error::TarPathKey;
pub use error::TarTrailerRefusal;
pub use error::TrailerCorruption;
pub use error::Unclassified;
pub use error::Violation;
pub use error::ZipBombDetails;
pub use error::ZipBombScope;
pub use error::ZipEntryIndex;
pub use error::ZipHeaderField;
pub use error::ZipInconsistency;
pub use error::ZipNonRegularKind;
pub use error::ZipStreamUndecided;
pub use error::ZipUncomparable;
pub use error::redaction::format_entry_path_for_error;
pub use error::redaction::sanitize_io_error_for_error;
pub use error::redaction::sanitize_path_for_error;
pub use formats::CompressionCodec;
pub use formats::detect::ArchiveType;
pub use formats::detect::CreatableFormat;
pub use formats::detect::ExtractOnlyFormat;
pub use formats::detect::detect_format;
pub use limit::Limit;
pub use limit::RatioLimit;
pub use limit::non_zero_u64;
pub use limit::non_zero_usize;
pub use limit::positive_from_f64;
pub use limit::positive_from_i128;
pub use reader::ArchiveReader;
pub use reader::SeekableFormat;
pub use report::BackupIdentity;
pub use report::EntryPosition;
pub use report::EntryTotal;
pub use report::ExtractionReport;
pub use report::ExtractionWarning;
pub use report::ExtractionWarningKind;
pub use report::NarrowingReason;
pub use report::NoopProgress;
pub use report::ProgressCallback;
pub use report::Skip;
pub use report::SkipKind;
pub use report::Skips;
pub use request::CreateRequest;
pub use request::Durability;
pub use request::ExtractRequest;
pub use request::ListRequest;
pub use request::OutputFile;
pub use request::OutputFormat;
pub use request::OutputPolicy;
pub use request::SinkExtractRequest;
pub use request::VerifyRequest;
pub use selection::EntrySelection;
pub use selection::PathRewrite;
pub use selection::StripComponents;
pub use staging::BACKUP_PREFIX;
pub use staging::STAGING_PREFIX;
pub use staging::StagedOutputKind;
pub use staging::StagingPlace;
pub use staging::staging_place;
pub use creation::CompressionLevel;
pub use creation::CreationConfig;
pub use creation::CreationReport;
pub use creation::CreationWarning;
pub use creation::CreationWarningKind;
pub use pattern::EntryPattern;
pub use writer::ArchiveWriter;
pub use inspection::ArchiveEntry;
pub use inspection::ArchiveManifest;
pub use inspection::CheckStatus;
pub use inspection::Disposition;
pub use inspection::DispositionKind;
pub use inspection::EntryCompression;
pub use inspection::Finding;
pub use inspection::Heuristic;
pub use inspection::IntegrityGaps;
pub use inspection::IntegrityStatus;
pub use inspection::IssueCategory;
pub use inspection::IssueSeverity;
pub use inspection::Landing;
pub use inspection::LandingKind;
pub use inspection::LandingPath;
pub use inspection::LinkTarget;
pub use inspection::LinkTargetState;
pub use inspection::ManifestEntryKind;
pub use inspection::ManifestEntryType;
pub use inspection::NameCollisionKind;
pub use inspection::OversizedEntry;
pub use inspection::PathOccupant;
pub use inspection::SolidBlock;
pub use inspection::UnixTime;
pub use inspection::UnverifiedEntry;
pub use inspection::UnverifiedReason;
pub use inspection::VerificationIssue;
pub use inspection::VerificationReport;
pub use inspection::VerificationStatus;
pub use inspection::VolumeIdentity;
pub use path_text::bytes_text;
pub use path_text::path_text;
pub use path_text::utf8_entry_path;
pub use security::fs_view::LinkKind;
pub use listed::DestinationCheck;
pub use listed::ListedArchive;
pub use listed::ListedExtractOptions;
pub use mark::MarkOutcome;
pub use mark::MarkPropagation;
pub use mark::MarkState;
pub use security::AdmittedSize;
pub use security::Compressed;
pub use security::EntryCount;
pub use security::EntrySize;
pub use security::HardlinkTarget;
pub use security::QuotaPermit;
pub use security::RawMode;
pub use security::SanitizedMode;
pub use security::Uncompressed;
pub use security::boundary::BoundaryPath;
pub use security::boundary::MAX_CONFIG_ENTRY_LENGTH;
pub use security::boundary::MAX_PATH_LENGTH;
pub use security::fs_view::PathModel;
pub use sink::CallbackEntry;
pub use sink::CallbackError;
pub use sink::CallbackSink;
pub use sink::EntrySink;
pub use sink::MemoryEntry;
pub use sink::MemoryEntryKind;
pub use sink::MemoryExtractRequest;
pub use sink::MemoryFile;
pub use sink::MemoryLimit;
pub use sink::MemorySink;
pub use sink::SinkFull;
pub use sink::SinkOptions;
pub use sink::extract_reader_to_callback;
pub use sink::extract_reader_to_memory;
pub use types::Extension;
pub use types::ExtensionFilter;
pub use types::Extensions;
pub use types::PathComponentName;
pub use types::CheckedLinkTarget;
pub use types::DestDir;
pub use types::SafePath;
pub use types::SafeSymlink;
#[cfg(feature = "testing")]
#[cfg_attr(docsrs, doc(cfg(feature = "testing")))]
pub use formats::detect::ZIP_FAMILY_ALIASES;
#[cfg(feature = "testing")]
#[cfg_attr(docsrs, doc(cfg(feature = "testing")))]
pub use security::HardlinkTracker;
#[cfg(feature = "testing")]
#[cfg_attr(docsrs, doc(cfg(feature = "testing")))]
pub use security::QuotaTracker;
#[cfg(feature = "testing")]
#[cfg_attr(docsrs, doc(cfg(feature = "testing")))]
pub use security::sanitize_permissions;
#[cfg(feature = "testing")]
#[cfg_attr(docsrs, doc(cfg(feature = "testing")))]
pub use security::validate_compression_ratio;
#[cfg(feature = "testing")]
#[cfg_attr(docsrs, doc(cfg(feature = "testing")))]
pub use security::validate_path;
#[cfg(feature = "testing")]
#[cfg_attr(docsrs, doc(cfg(feature = "testing")))]
pub use security::validate_symlink;
#[cfg(all(feature = "testing", any(unix, target_os = "wasi")))]
#[cfg_attr(docsrs, doc(cfg(feature = "testing")))]
pub use types::Walked;
#[cfg(feature = "testing")]
#[cfg_attr(docsrs, doc(cfg(feature = "testing")))]
pub use types::safe_path::is_windows_reserved_component;