# 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 = "odbc-api"
version = "28.2.0"
authors = ["Markus Klein"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Write ODBC Applications in (mostly) safe Rust."
documentation = "https://docs.rs/odbc-api/"
readme = "Readme.md"
keywords = [
    "odbc",
    "database",
    "sql",
]
categories = [
    "api-bindings",
    "database",
]
license = "MIT"
repository = "https://github.com/pacman82/odbc-api"

[package.metadata.docs.rs]
features = [
    "derive",
    "odbc_version_3_80",
]

[features]
default = [
    "odbc_version_3_80",
    "prompt",
]
derive = ["dep:odbc-api-derive"]
iodbc = [
    "odbc_version_3_5",
    "narrow",
    "odbc-sys/iodbc",
]
narrow = []
odbc_version_3_5 = ["odbc-sys/odbc_version_3_50"]
odbc_version_3_80 = ["odbc-sys/odbc_version_3_80"]
prompt = ["dep:winit"]
structured_logging = ["log/kv_std"]
vendored-unix-odbc = ["odbc-sys/vendored-unix-odbc"]
wide = []

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

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

[[test]]
name = "integration"
path = "tests/integration/main.rs"

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

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

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

[dependencies.atoi]
version = "3.0.0"

[dependencies.log]
version = "0.4.32"

[dependencies.odbc-api-derive]
version = "12.1.1"
optional = true

[dependencies.odbc-sys]
version = "0.31.0"
features = ["odbc_version_3_50"]
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[dependencies.widestring]
version = "1.2.1"

[dev-dependencies.anyhow]
version = "1.0.102"

[dev-dependencies.async-stream]
version = "0.3.6"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.csv]
version = "1.4.0"

[dev-dependencies.env_logger]
version = "0.11.10"

[dev-dependencies.stdext]
version = "0.3.3"

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

[dev-dependencies.test-case]
version = "3.3.1"

[dev-dependencies.testing_logger]
version = "0.1.1"

[dev-dependencies.tokio]
version = "1.52.3"
features = [
    "rt",
    "macros",
    "time",
]

[dev-dependencies.tokio-stream]
version = "0.1.18"

[target."cfg(windows)".dependencies.winit]
version = "0.30.13"
features = ["rwh_06"]
optional = true
default-features = false
