# 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"
name = "tideorm"
version = "0.1.0"
authors = ["TideORM Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A developer-friendly ORM for Rust - Laravel Eloquent / Rails ActiveRecord inspired"
homepage = "https://tideorm.com"
readme = "README.md"
keywords = [
    "orm",
    "database",
    "postgres",
    "activerecord",
    "eloquent",
]
categories = ["database"]
license = "MIT"
repository = "https://github.com/mohamadzoh/tideorm"

[features]
default = [
    "postgres",
    "runtime-tokio",
]
mysql = ["sea-orm/sqlx-mysql"]
postgres = ["sea-orm/sqlx-postgres"]
runtime-async-std = ["sea-orm/runtime-async-std-rustls"]
runtime-tokio = [
    "sea-orm/runtime-tokio-rustls",
    "tokio/rt-multi-thread",
]
sqlite = ["sea-orm/sqlx-sqlite"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.async-trait]
version = "0.1.89"

[dependencies.chrono]
version = "0.4.42"
features = ["serde"]

[dependencies.parking_lot]
version = "0.12"

[dependencies.rust_decimal]
version = "1.39.0"
features = ["serde"]

[dependencies.sea-orm]
version = "1.1.19"
features = [
    "macros",
    "with-chrono",
    "with-json",
    "with-uuid",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0.149"

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tideorm-macros]
version = "0.1.0"

[dependencies.tokio]
version = "1.0"
features = ["full"]
optional = true

[dependencies.uuid]
version = "1.19.0"
features = [
    "serde",
    "v4",
]

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

[dev-dependencies.dotenvy]
version = "0.15.7"

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

[dev-dependencies.serial_test]
version = "3.3.1"

[dev-dependencies.tokio]
version = "1.49.0"
features = [
    "full",
    "test-util",
    "macros",
]
