# 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 = "jankensqlhub"
version = "1.2.2"
authors = ["Martin Zheng <jszhengyq@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance, modular Rust library for parameterizable SQL query management with support for SQLite and PostgreSQL"
homepage = "https://github.com/pandazy/jankensqlhub"
documentation = "https://docs.rs/jankensqlhub"
readme = "README.md"
keywords = [
    "sqlite",
    "postgresql",
    "sql",
    "query-builder",
    "database",
]
categories = [
    "database",
    "database-implementations",
]
license = "MIT"
repository = "https://github.com/pandazy/jankensqlhub"

[features]
all = [
    "sqlite",
    "postgresql",
]
default = ["all"]
postgresql = ["tokio-postgres"]
sqlite = ["rusqlite"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.once_cell]
version = "1.19"

[dependencies.regex]
version = "1.12"

[dependencies.rusqlite]
version = "0.38"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.0"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
]

[dependencies.tokio-postgres]
version = "0.7"
features = ["with-serde_json-1"]
optional = true

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