# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "pulith-archive"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Archive extraction with path sanitization and transactional staging"
documentation = "https://github.com/anomalyco/pulith/blob/main/docs/design/archive.md"
readme = "README.md"
keywords = [
    "archive",
    "extract",
    "unzip",
    "tar",
]
categories = [
    "compression",
    "filesystem",
]
license = "Apache-2.0"
repository = "https://github.com/anomalyco/pulith"

[features]
blake3 = ["dep:blake3"]
default = [
    "zip",
    "tar",
    "xz",
    "zstd",
    "sha256",
    "blake3",
]
sha256 = [
    "dep:sha2",
    "dep:hex",
]
tar = [
    "dep:tar",
    "dep:flate2",
]
xz = ["dep:xz2"]
zip = ["dep:zip"]
zstd = ["dep:zstd"]

[lib]
name = "pulith_archive"
path = "src/lib.rs"

[[test]]
name = "tests"
path = "tests/tests.rs"

[dependencies.blake3]
version = "1.8"
optional = true

[dependencies.flate2]
version = "1.1.8"
optional = true

[dependencies.hex]
version = "0.4"
optional = true

[dependencies.pulith-fs]
version = "0.1.0"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.tar]
version = "0.4.45"
optional = true

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.xz2]
version = "0.1.7"
optional = true

[dependencies.zip]
version = "8.4.0"
optional = true

[dependencies.zstd]
version = "0.13.3"
optional = true
