# 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 = "qail-core"
version = "1.3.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "AST-native query builder - type-safe expressions, zero SQL strings"
readme = "README.md"
keywords = [
    "qail",
    "sql",
    "parser",
]
categories = [
    "database",
    "parser-implementations",
]
license = "Apache-2.0"
repository = "https://github.com/qail-io/qail"
resolver = "2"

[features]
_pg_examples = []
analyzer = []
default = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[example]]
name = "test_multiline_sql"
path = "examples/test_multiline_sql.rs"
required-features = ["analyzer"]

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

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

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

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

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

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

[[example]]
name = "test_subquery_sql2"
path = "examples/test_subquery_sql2.rs"
required-features = ["_pg_examples"]

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

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

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

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

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

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

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

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

[dependencies.nom]
version = "8"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.strsim]
version = "0.11"

[dependencies.toml]
version = "1.1"

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

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

[lints.rust]
dead_code = "deny"
unused = "deny"
unused_imports = "deny"
unused_variables = "deny"
warnings = "deny"
