# 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 = "2021"
name = "pgrx-tests"
version = "0.12.0-beta.5"
authors = ["PgCentral Foundation, Inc. <contact@pgcentral.org>"]
build = false
include = [
    "src/**/*",
    "README.md",
    "!**/tests/**/*",
]
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Test framework for 'pgrx'-based Postgres extensions"
homepage = "https://github.com/pgcentralfoundation/pgrx/"
documentation = "https://docs.rs/pgrx-tests"
readme = "README.md"
license = "MIT"
repository = "https://github.com/pgcentralfoundation/pgrx/"

[package.metadata.docs.rs]
features = [
    "pg14",
    "proptest",
]
no-default-features = true
rustc-args = [
    "--cfg",
    "docsrs",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]

[lib]
name = "pgrx_tests"
crate-type = [
    "cdylib",
    "lib",
]
path = "src/lib.rs"

[[bin]]
name = "pgrx_embed_pgrx-tests"
path = "src/bin/pgrx_embed.rs"

[dependencies.clap-cargo]
version = "0.14.0"
features = ["cargo_metadata"]

[dependencies.eyre]
version = "~0.6.12"

[dependencies.libc]
version = "0.2"

[dependencies.owo-colors]
version = "4.0"
features = ["supports-colors"]

[dependencies.paste]
version = "1"

[dependencies.pgrx]
version = "=0.12.0-beta.5"
default-features = false

[dependencies.pgrx-macros]
version = "=0.12.0-beta.5"

[dependencies.pgrx-pg-config]
version = "=0.12.0-beta.5"

[dependencies.postgres]
version = "0.19.7"

[dependencies.proptest]
version = "1"
optional = true

[dependencies.rand]
version = "0.8.5"

[dependencies.regex]
version = "1.1"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sysinfo]
version = "0.30.10"

[dependencies.thiserror]
version = "1"

[dev-dependencies.eyre]
version = "~0.6.12"

[dev-dependencies.trybuild]
version = "1"

[features]
cshim = ["pgrx/cshim"]
default = ["proptest"]
nightly = ["pgrx/nightly"]
no-schema-generation = [
    "pgrx/no-schema-generation",
    "pgrx-macros/no-schema-generation",
]
pg12 = ["pgrx/pg12"]
pg13 = ["pgrx/pg13"]
pg14 = ["pgrx/pg14"]
pg15 = ["pgrx/pg15"]
pg16 = ["pgrx/pg16"]
pg17 = ["pgrx/pg17"]
pg_test = []
proptest = ["dep:proptest"]

[lints.clippy]
used-underscore-binding = "deny"

[lints.rust]
unused-lifetimes = "deny"
