# 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 = "nautilus-orm-connector"
version = "1.2.2"
authors = ["nautilus-env"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Database executors and connection management for Nautilus ORM"
readme = "README.md"
keywords = [
    "orm",
    "database",
    "sql",
    "query-builder",
]
categories = ["database"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/nautilus-env/nautilus"

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

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

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

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

[dependencies.async-stream]
version = "0.3"

[dependencies.chrono]
version = "0.4"
features = ["std"]
default-features = false

[dependencies.futures]
version = "0.3"

[dependencies.nautilus-core]
version = "1.2.2"
package = "nautilus-orm-core"

[dependencies.nautilus-dialect]
version = "1.2.2"
package = "nautilus-orm-dialect"

[dependencies.rust_decimal]
version = "1.35"

[dependencies.rustc-hash]
version = "2"

[dependencies.serde_json]
version = "1.0"

[dependencies.smallvec]
version = "1"

[dependencies.sqlx]
version = "0.8"
features = [
    "postgres",
    "sqlite",
    "mysql",
    "runtime-tokio",
    "uuid",
    "chrono",
    "rust_decimal",
]

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "time",
    "rt",
]

[dependencies.uuid]
version = "1.0"
features = ["v4"]

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

[lints.clippy]
all = "warn"
nursery = "allow"
pedantic = "allow"

[lints.rust]
unsafe_code = "forbid"
