# 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.88"
name = "sql-values"
version = "0.3.1"
authors = ["Luca Cappelletti"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQL values, with PostgreSQL's value rules beside readers of the text PostgreSQL, MySQL and SQLite emit"
readme = "README.md"
keywords = [
    "sql",
    "parser",
    "postgresql",
    "mysql",
    "sqlite",
]
categories = [
    "database",
    "parser-implementations",
    "no-std",
]
license = "MIT"
repository = "https://github.com/connetto-rs/sql-values"

[package.metadata.docs.rs]
all-features = true

[features]
decimal = ["dep:bigdecimal"]
default = []
serde = ["dep:serde"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bigdecimal]
version = "0.4"
optional = true
default-features = false

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

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

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

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

[dev-dependencies.parking_lot]
version = "0.12.5"

[dev-dependencies.proptest]
version = "1.11"

[dev-dependencies.testcontainers]
version = "0.27"
features = ["blocking"]

[dev-dependencies.testcontainers-modules]
version = "0.15"
features = [
    "postgres",
    "mysql",
    "blocking",
]