# 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.95"
name = "pgevolve-core"
version = "0.3.7"
authors = ["Daniel Toone"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Postgres declarative schema management — core library (parser, IR, diff, planner) powering the pgevolve CLI."
homepage = "https://github.com/saosebastiao/pgevolve"
documentation = "https://docs.rs/pgevolve-core"
readme = "README.md"
keywords = [
    "postgres",
    "postgresql",
    "migration",
    "schema",
    "database",
]
categories = [
    "database",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/saosebastiao/pgevolve"
resolver = "2"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.blake3]
version = "1"

[dependencies.glob]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.pg_query]
version = "6"

[dependencies.pgevolve-core-macros]
version = "0.2.1"

[dependencies.regex]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = [
    "serde",
    "formatting",
    "parsing",
    "macros",
]

[dependencies.toml]
version = "1"

[dependencies.tracing]
version = "0.1"

[dependencies.walkdir]
version = "2"

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

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

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

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "signal",
]

[dev-dependencies.tokio-postgres]
version = "0.7"
features = [
    "with-uuid-1",
    "with-time-0_3",
]

[lints.clippy]
const_is_empty = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
unnecessary_wraps = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
