# 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.89"
name = "prax-orm"
version = "0.9.4"
authors = ["Joseph Quinn <quinn.josephr@protonmail.com>"]
build = false
exclude = [
    ".github/*",
    ".cursor/*",
    "TODO.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A next-generation, type-safe ORM for Rust inspired by Prisma"
homepage = "https://github.com/quinnjr/prax"
documentation = "https://docs.rs/prax-orm"
readme = "README.md"
keywords = [
    "orm",
    "database",
    "postgres",
    "async",
    "sql",
]
categories = [
    "database",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/quinnjr/prax"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.husky.hooks]
pre-commit = ".cargo-husky/hooks/pre-commit"
pre-push = ".cargo-husky/hooks/pre-push"
commit-msg = ".cargo-husky/hooks/commit-msg"

[features]
cpu-profiling = ["pprof"]
default = ["postgres"]
heap-profiling = ["dhat"]
memory-stats = ["dep:memory-stats"]
mongodb = []
mssql = []
mysql = []
postgres = []
profiling = [
    "tracing-subscriber",
    "tracing-flame",
    "tracing-chrome",
]
sqlite = []
ui-tests = []

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

[[example]]
name = "basic_queries"
path = "examples/basic_queries.rs"

[[example]]
name = "client_crud_postgres"
path = "examples/client_crud_postgres.rs"

[[example]]
name = "logging_demo"
path = "examples/logging_demo.rs"

[[example]]
name = "middleware"
path = "examples/middleware.rs"

[[example]]
name = "mongodb_demo"
path = "examples/mongodb_demo.rs"

[[example]]
name = "mssql_demo"
path = "examples/mssql_demo.rs"

[[example]]
name = "multi_tenant"
path = "examples/multi_tenant.rs"

[[example]]
name = "mysql_demo"
path = "examples/mysql_demo.rs"

[[example]]
name = "postgres_demo"
path = "examples/postgres_demo.rs"

[[example]]
name = "profile_cache_branch"
path = "examples/profile_cache_branch.rs"

[[example]]
name = "profile_cpu"
path = "examples/profile_cpu.rs"

[[example]]
name = "profile_filter_allocations"
path = "examples/profile_filter_allocations.rs"

[[example]]
name = "profile_memory"
path = "examples/profile_memory.rs"

[[example]]
name = "profile_orm_comparison"
path = "examples/profile_orm_comparison.rs"

[[example]]
name = "profile_size_analysis"
path = "examples/profile_size_analysis.rs"

[[example]]
name = "profile_tracing"
path = "examples/profile_tracing.rs"

[[example]]
name = "raw_sql"
path = "examples/raw_sql.rs"

[[example]]
name = "relations"
path = "examples/relations.rs"

[[example]]
name = "schema_parsing"
path = "examples/schema_parsing.rs"

[[example]]
name = "seed"
path = "examples/seed.rs"

[[example]]
name = "transactions"
path = "examples/transactions.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.dhat]
version = "0.3"
optional = true

[dependencies.memory-stats]
version = "1.2"
optional = true

[dependencies.pastey]
version = "0.1"

[dependencies.pprof]
version = "0.14"
features = [
    "flamegraph",
    "criterion",
]
optional = true

[dependencies.prax-codegen]
version = "0.9.4"

[dependencies.prax-query]
version = "0.9.4"

[dependencies.prax-schema]
version = "0.9.4"

[dependencies.tracing-chrome]
version = "0.7"
optional = true

[dependencies.tracing-flame]
version = "0.2"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
    "json",
]
optional = true

[dev-dependencies.bson]
version = "2.13"
features = [
    "chrono-0_4",
    "uuid-1",
    "serde_with",
]

[dev-dependencies.cargo-husky]
version = "1"
features = ["user-hooks"]
default-features = false

[dev-dependencies.chrono]
version = "0.4"
features = ["serde"]

[dev-dependencies.criterion]
version = "0.8.0"
features = [
    "html_reports",
    "async_tokio",
]

[dev-dependencies.diesel]
version = "2.2"
features = [
    "postgres",
    "mysql",
    "sqlite",
    "r2d2",
]

[dev-dependencies.diesel-async]
version = "0.5"
features = [
    "postgres",
    "mysql",
    "deadpool",
]

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.insta]
version = "1.40"
features = ["yaml"]

[dev-dependencies.prax-cassandra]
version = "0.9.4"

[dev-dependencies.prax-duckdb]
version = "0.9.4"

[dev-dependencies.prax-mongodb]
version = "0.9.4"

[dev-dependencies.prax-mssql]
version = "0.9.4"

[dev-dependencies.prax-mysql]
version = "0.9.4"

[dev-dependencies.prax-postgres]
version = "0.9.4"

[dev-dependencies.prax-query]
version = "0.9.4"

[dev-dependencies.prax-schema]
version = "0.9.4"

[dev-dependencies.prax-scylladb]
version = "0.9.4"

[dev-dependencies.prax-sqlite]
version = "0.9.4"

[dev-dependencies.prax-sqlx]
version = "0.9.4"

[dev-dependencies.rusqlite]
version = "0.32"
features = ["bundled"]

[dev-dependencies.rust_decimal]
version = "1.37"
features = ["serde"]

[dev-dependencies.sea-orm]
version = "1.1"
features = [
    "sqlx-postgres",
    "sqlx-mysql",
    "sqlx-sqlite",
    "runtime-tokio-rustls",
    "macros",
]

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

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.sqlx]
version = "0.8"
features = [
    "runtime-tokio",
    "tls-rustls",
    "macros",
    "json",
    "chrono",
    "uuid",
    "postgres",
    "mysql",
    "sqlite",
    "runtime-tokio",
]

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

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

[dev-dependencies.toml]
version = "0.9"

[dev-dependencies.tracing]
version = "0.1"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
    "json",
]

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

[dev-dependencies.uuid]
version = "1.10"
features = [
    "v4",
    "serde",
]

[profile.bench]
lto = "thin"
codegen-units = 1

[profile.dev]
opt-level = 0

[profile.dev-opt]
opt-level = 2
inherits = "dev"

[profile.profiling]
debug = 2
inherits = "release"
strip = false

[profile.release]
lto = "thin"
codegen-units = 1
panic = "abort"
