postgresql_embedded 0.20.1

Install and run a PostgreSQL database locally on Linux, MacOS or Windows. PostgreSQL can be bundled with your application, or downloaded on demand.
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_embedded"
version = "0.20.1"
authors = ["Brian Heineman <brian.heineman@gmail.com>"]
build = "build/build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Install and run a PostgreSQL database locally on Linux, MacOS or Windows. PostgreSQL can be bundled with your application, or downloaded on demand."
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.release]
dependent-version = "upgrade"

[package.metadata.docs.rs]
no-default-features = true
features = [
    "blocking",
    "theseus",
    "tokio",
]
targets = ["x86_64-unknown-linux-gnu"]

[features]
blocking = ["tokio"]
bundled = ["postgresql_archive/github"]
default = [
    "native-tls",
    "theseus",
]
indicatif = ["postgresql_archive/indicatif"]
native-tls = [
    "postgresql_archive/native-tls",
    "sqlx/tls-native-tls",
]
rustls = [
    "postgresql_archive/rustls",
    "sqlx/tls-rustls",
]
theseus = ["postgresql_archive/theseus"]
tokio = [
    "dep:tokio",
    "postgresql_commands/tokio",
    "sqlx/runtime-tokio",
]
zonky = ["postgresql_archive/zonky"]

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

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

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

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

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

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

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

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

[dependencies.postgresql_archive]
version = "0.20.1"
default-features = false

[dependencies.postgresql_commands]
version = "0.20.1"

[dependencies.rand]
version = "0.10.0"

[dependencies.semver]
version = "1.0.27"

[dependencies.sqlx]
version = "0.8.6"
features = [
    "postgres",
    "runtime-tokio",
]
default-features = false

[dependencies.tempfile]
version = "3.24.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.url]
version = "2.5.8"

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

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

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

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

[build-dependencies.anyhow]
version = "1.0.101"

[build-dependencies.postgresql_archive]
version = "0.20.1"
default-features = false

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

[build-dependencies.tokio]
version = "1.49.0"
features = ["full"]

[build-dependencies.url]
version = "2.5.8"