postgresql_archive 0.20.2

A library for downloading and extracting PostgreSQL archives
Documentation
# 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"
rust-version = "1.92.0"
name = "postgresql_archive"
version = "0.20.2"
authors = ["Brian Heineman <brian.heineman@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library for downloading and extracting PostgreSQL archives"
readme = "README.md"
keywords = [
    "postgresql",
    "postgres",
    "embedded",
    "database",
    "server",
]
categories = ["database"]
license = "(Apache-2.0 OR MIT) AND PostgreSQL"
repository = "https://github.com/theseus-rs/postgresql-embedded"

[package.metadata.docs.rs]
features = ["blocking"]
targets = ["x86_64-unknown-linux-gnu"]

[package.metadata.cargo-machete]
ignored = [
    "md-5",
    "serde_json",
]

[features]
blocking = ["dep:tokio"]
default = [
    "native-tls",
    "theseus",
]
github = ["dep:serde_json"]
indicatif = ["dep:tracing-indicatif"]
maven = [
    "dep:quick-xml",
    "md5",
    "sha1",
    "sha2",
]
md5 = ["dep:md-5"]
native-tls = ["reqwest/native-tls"]
rustls = ["reqwest/rustls"]
sha1 = ["dep:sha1"]
sha2 = ["dep:sha2"]
tar-gz = [
    "dep:flate2",
    "dep:tar",
]
tar-xz = [
    "dep:liblzma",
    "dep:tar",
]
theseus = [
    "github",
    "sha2",
    "tar-gz",
]
zip = ["dep:zip"]
zonky = [
    "maven",
    "tar-xz",
    "zip",
]

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

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

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

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

[[bench]]
name = "archive"
path = "benches/archive.rs"
harness = false

[dependencies.async-trait]
version = "0.1.89"

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

[dependencies.futures-util]
version = "0.3.32"

[dependencies.hex]
version = "0.4.3"

[dependencies.liblzma]
version = "0.4.6"
optional = true

[dependencies.md-5]
version = "0.10.6"
optional = true

[dependencies.quick-xml]
version = "0.39.2"
features = ["serialize"]
optional = true

[dependencies.regex-lite]
version = "0.1.9"

[dependencies.reqwest]
version = "0.13.2"
features = [
    "http2",
    "json",
    "query",
    "stream",
]
default-features = false

[dependencies.reqwest-middleware]
version = "0.5.1"
features = ["query"]

[dependencies.reqwest-retry]
version = "0.9.1"

[dependencies.reqwest-tracing]
version = "0.7.0"

[dependencies.semver]
version = "1.0.27"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.149"
optional = true

[dependencies.sha1]
version = "0.10.6"
optional = true

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

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

[dependencies.target-triple]
version = "1.0.0"

[dependencies.tempfile]
version = "3.25.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.49.0"
features = ["full"]
optional = true

[dependencies.tracing]
version = "0.1.44"
features = ["log"]

[dependencies.tracing-indicatif]
version = "0.3.14"
optional = true

[dependencies.url]
version = "2.5.8"

[dependencies.zip]
version = "8.1.0"
features = ["deflate"]
optional = true
default-features = false

[dev-dependencies.anyhow]
version = "1.0.102"

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.hex]
version = "0.4.3"

[dev-dependencies.test-log]
version = "0.2.19"

[dev-dependencies.tokio]
version = "1.49.0"