# 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 = "rorm-db"
version = "0.12.0"
authors = ["myOmikron <git@omikron.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The inner database abstraction layer from rorm."
homepage = "https://rorm.rs"
documentation = "https://docs.rorm.rs"
readme = "README.md"
keywords = [
    "async",
    "orm",
    "database",
    "orm",
]
categories = ["database"]
license = "MIT"
repository = "https://github.com/rorm-orm/rorm-db"

[package.metadata.docs.rs]
features = [
    "all-driver",
    "serde",
    "native-tls",
    "rustls",
]

[features]
all-driver = [
    "postgres",
    "sqlite",
]
native-tls = ["sqlx/tls-native-tls"]
postgres = [
    "sqlx/postgres",
    "rorm-sql/postgres",
    "rorm-declaration/postgres",
]
postgres-only = [
    "postgres",
    "rorm-sql/postgres-only",
    "sqlx/mac_address",
    "sqlx/ipnetwork",
    "sqlx/bit-vec",
]
rustls = ["sqlx/tls-rustls"]
serde = ["dep:serde"]
sqlite = [
    "sqlx/sqlite",
    "rorm-sql/sqlite",
    "rorm-declaration/sqlite",
]

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

[dependencies.futures-core]
version = "~0.3"

[dependencies.pin-project]
version = "~1"

[dependencies.rorm-declaration]
version = "~0.5"

[dependencies.rorm-sql]
version = "~0.11"

[dependencies.serde]
version = "~1"
features = ["derive"]
optional = true

[dependencies.sqlx]
version = "~0.8"
features = [
    "json",
    "time",
    "chrono",
    "uuid",
    "runtime-tokio",
]
default-features = false

[dependencies.tracing]
version = "~0.1"
