# 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.93"
name = "purwa-orm"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQLx migrations and pool helpers for Purwa; optional SeaORM bridge"
documentation = "https://docs.rs/purwa-orm"
readme = "README.md"
keywords = [
    "purwa",
    "sqlx",
    "postgres",
    "migrations",
]
categories = [
    "database",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/sangkan-dev/purwa"
resolver = "2"

[features]
default = []
sea-orm = ["dep:sea-orm"]

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

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

[dependencies.purwa-core]
version = "0.1.0"

[dependencies.sea-orm]
version = "1.1"
features = [
    "runtime-tokio-rustls",
    "sqlx-postgres",
]
optional = true
default-features = false

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

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.52.1"
features = [
    "macros",
    "rt-multi-thread",
]

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

[dev-dependencies.testcontainers]
version = "0.25.0"

[dev-dependencies.testcontainers-modules]
version = "0.13.0"
features = ["postgres"]

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